scout_mini在Gazebo仿真时遇到的问题

开始在将scout_mini的功能包编译完成后,尝试在对其进行仿真(仿真平台Ubuntu16.04 ROS-kinetic),但是遇到一些问题,rviz中小车的4个轮子无法显示,报错如下:

[ERROR] [1618482874.707291185, 13535.490000000]: Could not load controller 'scout_motor_rl_controller' because controller type 'velocity_controllers/JointVelocityController' does not exist.
[ERROR] [1618482874.707355415, 13535.490000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types
[ERROR] [1618482875.708221, 13536.500000]: Failed to load scout_motor_rl_controller

在这里插入图片描述解决方法:
直接安装对应的依赖:

sudo apt-get install ros-kinetic-ros-control ros-kinetic-ros-controllers

当我重新启动仿真时输入:

roslaunch scout_bringup scout_mini_base_gazebo_sim.launch

输出如下:

[ INFO] [1618484298.056557838]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1618484298.057829516]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[INFO] [1618484298.162548, 0.000000]: Controller Spawner: Waiting for service controller_manager/load_controller
[ INFO] [1618484298.251051242]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1618484298.257287336]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1618484299.661096591, 13532.330000000]: Loading gazebo_ros_control plugin
[ERROR] [1618484299.661406144, 13532.330000000]: 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.

[ INFO] [1618484299.661528501, 13532.330000000]: Starting gazebo_ros_control plugin in namespace: /
[ INFO] [1618484299.662827328, 13532.330000000]: gazebo_ros_control plugin is waiting for model URDF in parameter [robot_description] on the ROS param server.
[ERROR] [1618484299.777305644, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_right_wheel
[ERROR] [1618484299.779101309, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_left_wheel
[ERROR] [1618484299.780671013, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/rear_left_wheel
[ERROR] [1618484299.782602926, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/rear_right_wheel
[spawn_scout_mini_model-3] process has finished cleanly
log file: /home/hcq/.ros/log/bb158660-9dd1-11eb-8f71-1008b1dc02d7/spawn_scout_mini_model-3*.log

rviz中小车轮子显示正常:
在这里插入图片描述但是以上终端输出内容中依然有如下报错:

[ERROR] [1618484299.777305644, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_right_wheel
[ERROR] [1618484299.779101309, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/front_left_wheel
[ERROR] [1618484299.780671013, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/rear_left_wheel
[ERROR] [1618484299.782602926, 13532.330000000]: No p gain specified for pid.  Namespace: /gazebo_ros_control/pid_gains/rear_right_wheel
  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

古月长青

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值