Axeliar 发表于 2022-12-17 19:54:58

运行wheeltec_gazebo_control时加载控制器失败

在自己电脑的虚拟机上运行wheeltec_robot_gazebo里的代码,编译无误。
运行wheeltec_description下的wheeltec_robot_gazebo.launch文件,可以在rviz中看到整个小车。(选用了4wd车型)

但运行wheeltec_gazebo_control下的wheeltec_gazebo_control.launch文件时会报错,导致rviz中看到的小车没有车轮。

报错信息:
: Exception thrown while initializing controller 'mini_4wd_right_rear_wheel_velocity_controller'.
Could not find resource 'right_rear_wheel_joint' in 'hardware_interface::VelocityJointInterface'.
: Initializing controller 'mini_4wd_right_rear_wheel_velocity_controller' failed
: Failed to load mini_4wd_right_rear_wheel_velocity_controller
(四个轮子都会各报一次这个错误)

此时执行rostopic list可以看到存在/cmd_vel话题,但运行wheeltec_gazebo_function下的keyboard_teleop.launch文件,正常运行后无法控制车模在rviz或gazebo中运动。
请问这可能是什么问题呢,应该如何调试?


Axeliar 发表于 2022-12-18 16:53:19

哦不好意思,应该是我自己搭建虚拟机的版本和配置问题吧,我之前使用的是Ubuntu20.04搭载ROS-noetic。
我下载了提供的Ubuntu镜像,稍作修改后就可以正常运行了。

WHEELTEC_WU 发表于 2022-12-19 18:35:15

好的                  
页: [1]
查看完整版本: 运行wheeltec_gazebo_control时加载控制器失败