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.
在这里插入图片描述

解决:在机械臂模型文件的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
在这里插入图片描述
解决:

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
在这里插入图片描述
[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
在这里插入图片描述
解决:

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

问题四

[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
在这里插入图片描述
可以忽略这个错误。

问题五

[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
在这里插入图片描述
在这里插入图片描述
解决:要使MoveIt!控制器的命名空间与机械臂控制器插件中的命名空间相同。

文章不妥之处还望指正

  • 11
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 11
    评论
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值