Moveit控制机械臂及报错与解决(No motion plan found. No execution attempted)
创始人
2024-02-24 14:22:39
0

MoveIt控制机械臂的参考程序

python版本(又waypoint)
https://blog.csdn.net/qq_33328642/article/details/122667192

python+cpp版本
https://blog.csdn.net/zzu_seu/article/details/90612876

报错及解决:Fail: ABORTED: No motion plan found. No execution attempted

设置笛卡尔坐标后,使用set_pose_target()设置目标后,再进行plan,会报错:

Fail: ABORTED: No motion plan found. No execution attempted

以下是分析过程:

  • 位置是确定可以到达的,所以首先排除位置不可达的原因。(当然,对于大多数时候,出现这个报错首先应该考虑的是这个位置是否是可达的!
  • 且使用set_random_target()set_joint_value_target()都可以,只有set_pose_target()会报错,所以moveit应当是没有问题的
  • 在rviz里选中approx ik solutions是可以正常拖动末端然后使用规划路径的,所以猜测可能和approx这个设置有关

参考及解决:

  • https://groups.google.com/g/moveit-users/c/uMG3hZYhYbw

这里提到kdl逆运动学解算插件对低自由度机械臂的逆运动学解算不友好,
所以后面我换了TRAC-IK解算,但是还是不成功。
另一种基于解析解的IKFAST逆运动学解算插件安装配置比较麻烦,所以虽然没有成功,但是我也不想继续尝试了
关于逆运动学解算插件的更换,可以参考古月居:https://mp.weixin.qq.com/s/RdVchbCFA6mUla18qOmBYA


  • https://answers.ros.org/question/341130/moveit-problem-fail-aborted-no-motion-plan-found-no-execution-attempted/
  • https://groups.google.com/g/moveit-users/c/h75nDpwOKLk

这两个都是印证我刚刚的猜想,和approx ik solutions设置有关。

如果使用c++的话可以使用函数group.setApproximateJointValueTarget(target_pose1, "link3");来代替函数group.setPoseTarget(target_pose1,"link3");前提是在程序里设置了tolerance

而是如果使用python的话,可以使用函数set_joint_value_target(pose, string, bool) ,第三个参数确定是否允许误差。

这个函数的第一个参数是允许Pose或PoseStamp类型的,所以可以用作笛卡尔空间的规划,函数的具体说明如下:

def moveit_commander.move_group.MoveGroupCommander.set_joint_value_target ( self,
arg1,
arg2 = None,
arg3 = None
)
Specify a target joint configuration for the group.

  • if the type of arg1 is one of the following: dict, list, JointState message, then no other arguments should be provided.
    The dict should specify pairs of joint variable names and their target values, the list should specify all the variable values
    for the group. The JointState message specifies the positions of some single-dof joints.
  • if the type of arg1 is string, then arg2 is expected to be defined and be either a real value or a list of real values. This is
    interpreted as setting a particular joint to a particular value.
  • if the type of arg1 is Pose or PoseStamped, both arg2 and arg3 could be defined. If arg2 or arg3 are defined, their types must
    be either string or bool. The string type argument is interpreted as the end-effector the pose is specified for (default is to use
    the default end-effector), and the bool is used to decide whether the pose specified is approximate (default is false). This situation
    allows setting the joint target of the group by calling IK. This does not send a pose to the planner and the planner will do no IK.
    Instead, one IK solution will be computed first, and that will be sent to the planner.

官网链接:http://docs.ros.org/en/indigo/api/moveit_commander/html/classmoveit__commander_1_1move__group_1_1MoveGroupCommander.html#a55db2d061bbf73d05b9a06df7f31ea39

使用这个函数后就成功啦~

相关内容

热门资讯

面试公告!河南省2025年统一... 转自:三门峡发布根据《河南省2025年统一考试录用公务员公告》《三门峡市2025年市直机关公开遴选公...
中国3月份锌产量61.5万吨 ... 格隆汇4月21日|国家统计局数据显示,中国3月份锌产量61.5万吨,同比下降1.1%。中国3月份煤油...
转发辟谣!阿莫西林抹脸美白是伪... 来源: 央视新闻 #口服药洗头抹脸法是害人#【转发辟谣!...
70分钟充满电 中国首批100... 格隆汇4月21日|据央视,我国首批1000kW功率等级电池动力机车在中车大连公司正式下线,首批10台...
第二届廊坊百货展开幕 转自:廊坊日报 本报讯(记者 杨雅淇)4月20日,为期3天的第二届廊坊百货展在廊坊国际会展中...
最新!河北普通高等职业教育单独... 转自:廊坊发布河北省教育考试院最新发布2025年河北省普通高等职业教育单独考试招生征集计划↓↓↓一、...
走出象牙塔,师生玩转古风短剧创... 转自:中国共青团网  安徽工程大学设计学院师生片场工作照及剧组剧照。受访者供图  “这是我首次参与网...
共绘水岸新图景,这场国际艺术大... 转自:上观新闻4月20日下午,“更美好的水岸”2025朱家角国际艺术季暨第九届墨韵少年国际水墨艺术大...
“男子带10名女子吃千元烧烤逃... 来源:大皖新闻 2025年2月,在辽宁大连开烧烤店的杜先生接待了一桌顾客,这桌顾客消费了1000多元...
岳阳楼区花板桥学校:书香沁润童... 岳阳日报4月21日讯(全媒体记者 田卓灵 通讯员 李文英)在第30个“世界读书日”来临之际,为激发学...
黄金概念股大涨!这家公司预计金... 今日早盘,A股震荡上扬。北证50、中证1000等盘中均涨逾1%,上证指数、沪深300、上证50等纷纷...
27只新基金开售 【导读】本周27只新基金启动发售,指数产品居多中国基金报记者 天心本周(4月21日至4月25日),全...
广发中证A500ETF季报解读... 2025年第1季度,广发中证A500ETF在市场震荡中展现出一系列值得关注的表现。从基金份额变动来看...
短期贷款猛增 3月金融数据超市... 转自:中国经营报    本报记者谭志娟北京报道    近期,中国人民银行发布3月金融统计数据报告。其...
未来十年我国 农业生产“丰”景... 转自:廊坊日报 新华社北京4月20日电(记者 古一平)在2024年我国粮食产量首次突破1.4...
追风逐梦竞风采 转自:廊坊日报 奔跑,呐喊,释放活力,追逐梦想。4月14日,由廊坊市体育局、廊坊市教育局主办...
怡亚通白酒业务萎缩 业外资本扩... 转自:中国经营报    本报记者党鹏成都报道    近日,“供应链第一股”怡亚通(002183.SZ...
平安沪深300ETF季报解读:... 平安沪深300ETF于2025年4月21日发布了第一季度报告。报告显示,该基金在一季度内多项关键指标...
关税战驱动资本“东迁” 陈茂波... 财联社4月21日讯(编辑 胡家荣) 香港财政司司长陈茂波周日在最新撰文中指出,全球资本配置正呈现显著...
“2025宁台幸福社区汇”在栖... 转自:扬子晚报扬子晚报网4月21日讯(记者 笪越)4月19日,“2025宁台幸福社区汇”在南京栖霞区...