1.无法启动类型为[controller_ manager/spawner]的节点:controller_ manager
ERROR: cannot launch node of type [controller_manager/spawner]: controller_manager
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/home/lym/catkin_ws/src
ROS path [2]=/opt/ros/noetic/share
解决办法:安装controller_manager
sudo apt install ros-noetic-controller-manager
2.控制器生成程序找不到预期的控制器管理器ROS接口
[WARN] [1583374635.458421, 19.204000]: Controller Spawner couldn't find the expected controller_manager ROS interface.
解决办法
sudo apt-get install ros-noetic-gazebo-ros-control
3.使用DefaultRobothSim时,GazeboRosControlPlugin缺少<legacyModeNS>,默认为true
[ERROR] : GazeboRosControlPlugin missing <legacyModeNS> 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 <legacyModeNS> to true.
解决办法
在当前的工作空间目录下找到以.gazebo或.urdf或.xacro为结尾的文件,gedit编辑器打开后添加一行
<legacyModeNS>true</legacyModeNS>
修改后的xml结构如下
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/robot</robotNamespace>
<legacyModeNS>true</legacyModeNS>
</plugin>
</gazebo>
4.无法加载控制器“关节状态控制器”,因为控制器类型“关节状态控制器/JointStateController”不存在
[ERROR]: Could not load controller 'joint_state_controller' because controller type 'joint_state_controller/JointStateController' does not exist.
解决办法
sudo apt-get install ros-noetic-joint-state-controller
5.无法加载控制器“关节位置控制器”,因为控制器类型“关节位置控制器/JointPositionController”不存在
[ERROR] : Could not load controller 'shoulder_joint1_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist.
解决办法
sudo apt-get install ros-noetic-position-controllers
6.ros的另外一些控制器插件安装文章来源:https://www.toymoban.com/news/detail-578752.html
sudo apt-get install ros-noetic-effort-controllers
sudo apt-get install ros-noetic-velocity-controllers
sudo apt-get install ros-noetic-velocity-controllers
7.ResourceNotFound: rosbridge_server文章来源地址https://www.toymoban.com/news/detail-578752.html
sudo apt-get install ros-noetic-rosbridge-server
到了这里,关于ubuntu20.04_ROS中运行gazebo控制机器人模型报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!