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

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

相关内容

热门资讯

求经典台词和经典旁白 求经典台词和经典旁白谁有霹雳布袋戏里的经典对白和经典旁白啊?朋友,你尝过失去的滋味吗? 很多人在即将...
小王子第二章主要内容概括 小王子第二章主要内容概括小王子第二章主要内容概括小王子第二章主要内容概括
爱情睡醒了第15集里刘小贝和项... 爱情睡醒了第15集里刘小贝和项天骐跳舞时唱的那首歌是什么谢谢开始找舞伴的时候是林俊杰的《背对背拥抱》...
世界是什么?世界是什么概念?可... 世界是什么?世界是什么概念?可以干什么?物质的和意识的 除了我们生活的地方 比方说山 河 公路 ...
全职猎人中小杰和奇牙拿一集被抓 全职猎人中小杰和奇牙拿一集被抓动画片是第五十九集,五十八集被发现,五十九被带回基地,六十逃走
“不周山”意思是什么 “不周山”意思是什么快快快快......一座山,神话里被共工撞倒了。
《揭秘》一元一分15张跑得快群... 一元一分麻将群加群主微【ab120590】【tj525555】 【mj120590】等风也等你。喜欢...
玩家必看手机正规红中麻将群@2... 好运连连,全网推荐:(ab120590)(mj120590)【tj525555】-Q号:(QQ443...
始作俑者15张跑的快群@24小... 微信一元麻将群群主微【ab120590】 【tj525555】【mj120590】一元一分群内结算,...
《重大通知》24小时一元红中麻... 加V【ab120590】【tj525555】【mj120590】红中癞子、跑得快,等等,加不上微信就...
盘点一下正规一块红中麻将群@2... 一元一分麻将群加群主微:微【ab120590】 【mj120590】【tj525555】喜欢手机上打...
(免押金)上下分一元一分麻将群... 微【ab120590】 【mj120590】【tj525555】专业麻将群三年房费全网最低,APP苹...
[解读]正规红中麻将跑的快@群... 微信一元麻将群群主微【ab120590】 【tj525555】【mj120590】一元一分群内结算,...
《普及一下》全天24小时红中... 微【ab120590】 【mj120590】【tj525555】专业麻将群三年房费全网最低,APP苹...
优酷视频一元一分正规红中麻将... 好运连连,全网推荐:(ab120590)(mj120590)【tj525555】-Q号:(QQ443...
《火爆》加入附近红中麻将群@(... 群主微【ab120590】 【mj120590】【tj525555】免带押进群,群内跑包包赔支持验证...
《字节跳动》哪里有一元一分红中... 1.进群方式-[ab120590]或者《mj120590》【tj525555】--QQ(QQ4434...
全网普及红中癞子麻将群@202... 好运连连,全网推荐:(ab120590)(mj120590)【tj525555】-Q号:(QQ443...
「独家解读」一元一分麻将群哪里... 1.进群方式《ab120590》或者《mj120590》《tj525555》--QQ(4434063...
通知24小时不熄火跑的快群@2... 1.进群方式《ab120590》或者《mj120590》《tj525555》--QQ(4434063...