详细报错:
ERROR: cannot launch node of type [rqt_joint_trajectory_controller/rqt_joint_trajectory_controller]: rqt_joint_trajectory_controller
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/rosmelodic/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
问题怎么出现的:
这个问题出现在二次开发的机械臂手爪需要
mimic_joint_pluginhttps://github.com/roboticsgroup/roboticsgroup_gazebo_plugins这个插件,其中这个插件的安装方法是
git clone https://github.com/roboticsgroup/roboticsgroup_gazebo_plugins.git
在工作区catkin_ws的src中打开终端,进行克隆,然后回到工作区根目录catkin_make编译。
为了看插件是否安装成功还需要试一下。官方给了一个简易的手爪能在gazebo物理环境下测试。
GitHub - mintar/mimic_joint_gazebo_tutorial: Simple example on how to properly use the mimic joint plugin in Gazebohttps://github.com/mintar/mimic_joint_gazebo_tutorial把压缩包解压放在工作空间下的src文件夹中,同时要改文件名,把-kinetic去掉。
roslaunch mimic_joint_gazebo_tutorial gazebo.launch
工作空间下运行,报错:
ERROR: cannot launch node of type [rqt_joint_trajectory_controller/rqt_joint_trajectory_controller]: rqt_joint_trajectory_controller
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/rosmelodic/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
解决
sudo apt-get install ros-melodic-rqt-joint-trajectory-controller
其中melodic是ros的版本,不同的版本要修改此处。
再次输入命令
roslaunch mimic_joint_gazebo_tutorial gazebo.launch
调整好。
说明这个并联机构的插件安装成功。