MOVEIT!控制GAZEBO仿真机械臂时遇到的一些问题

MOVEIT!控制GAZEBO仿真机械臂时遇到的一些问题

问题一

[ERROR] [1588820786.499505393, 0.159000000]: GazeboRosControlPlugin missing while using DefaultRobotHWSim, defaults to true.
This setting assumes you have an old package with an old implementation of DefaultRobotHWSim, where the robotNamespace is disregarded and absolute paths are used instead.
If you do not want to fix this issue in an old package just set to true.
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-vUuTM4n1-1598239499889)(https://www.freesion.com/images/629/2a66eec2b0b53570d81012e6cc3086f5.png)]

解决:在机械臂模型文件的gazebo标签下的plugin标签中加入如下指令

<legacyModeNS>true</legacyModeNS>

问题二

[ERROR] [1588820786.914581110, 0.441000000]: Could not load controller ‘joint_state_controller’ because controller type ‘joint_state_controller/JointStateController’ does not exist.
[ERROR] [1588820786.914628353, 0.441000000]: Use ‘rosservice call controller_manager/list_controller_types’ to get the available types
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-wyqzmfD3-1598239499891)(https://www.freesion.com/images/287/09f229cf95daa96f1bfad74faf19dfa7.png)]

解决:

sudo apt-get install ros-kinetic-joint-state-controller

问题三

[ERROR] [1588820786.929189468, 0.456000000]: Could not load controller ‘arm_joint_controller’ because controller type ‘position_controllers/JointTrajectoryController’ does not exist.
[ERROR] [1588820786.929303048, 0.456000000]: Use ‘rosservice call controller_manager/list_controller_types’ to get the available types
[ERROR] [1588820787.915305, 1.439000]: Failed to load joint_state_controller
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-dbBGWMus-1598239499892)(https://www.freesion.com/images/135/f3060c6c0e2c73b9b4ab3855ad6edaaf.png)]

[ERROR] [1588820787.933275635, 1.457000000]: Could not load controller ‘gripper_controller’ because controller type ‘position_controllers/JointTrajectoryController’ does not exist.
[ERROR] [1588820787.933354984, 1.457000000]: Use ‘rosservice call controller_manager/list_controller_types’ to get the available types
[ERROR] [1588820788.933905, 2.455000]: Failed to load gripper_controller
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rWCyYG2C-1598239499894)(https://www.freesion.com/images/191/1c94e03f4cebc8fd09bdc2b29cbcb4ff.png)]

解决:

sudo apt-get install ros-kinetic-position-controllers
sudo apt-get install ros-kinetic-joint-trajectory-controller1

问题四

[ERROR] [1588820786.617267118, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint1
[ERROR] [1588820786.618290919, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint2
[ERROR] [1588820786.619569969, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint3
[ERROR] [1588820786.620965740, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint4
[ERROR] [1588820786.622775698, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint5
[ERROR] [1588820786.623953112, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/joint6
[ERROR] [1588820786.624981470, 0.159000000]: No p gain specified for pid. Namespace: /gazebo_ros_control/pid_gains/finger_joint1
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-SSghlKn3-1598239499896)(https://www.freesion.com/images/138/b7471afff2a2c15e8096fd2db1efcc6a.png)]

可以忽略这个错误。

问题五

[ERROR] [1588820803.697202340, 17.179000000]: Action client not connected: arm_controller/follow_joint_trajectory
[ERROR] [1588820820.797045484, 34.218000000]: Action client not connected: gripper_controller/gripper_action
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tZi8qKw6-1598239499897)(https://www.freesion.com/images/410/efdc9261659ab77626310f5200a7ca22.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Fu8KrqjD-1598239499898)(https://www.freesion.com/images/74/fac6fdca07c4b3c0b98270737cf987ca.png)]w6-1598239499897)][外链图片转存中...(img-Fu8KrqjD-1598239499898)]

解决:要使MoveIt!控制器的命名空间与机械臂控制器插件中的命名空间相同。

  • 2
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值