ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Bumpers with Turtlebot 2

asked 2013-03-11 01:12:06 -0500

CarolineQ gravatar image

updated 2013-03-11 03:26:55 -0500

I would like to use a safety controller with my turtlebot 2, so that I can take into account bumper's state when navigating.

Is there a safety controller that has been created for the turtlebot 2 or should I use the same one than for the kobuki base ? Is there a nodelet manager started in turtlebot_bringup/minimal.launch ?


When I tried to do this tutorial : using only the kobuki_node/minimal.launch it works. But I would like to use turtlebot_bringup/minimal.launch but no nodelet manager seems to be started...

Can someone help me ?

edit retag flag offensive close merge delete


Should work - kobuki, turtlebot-kobuki and turtlebot-create all start nodelet managers with the name mobile_base_nodelet_manager. You can find the turtlebot nodelet manager in

Daniel Stonier gravatar image Daniel Stonier  ( 2013-03-11 04:59:55 -0500 )edit

What version of the kobuki and turtlebot stacks do you have?

Daniel Stonier gravatar image Daniel Stonier  ( 2013-03-11 05:00:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-11 21:00:28 -0500

bit-pirate gravatar image

Hi CarolineQ,

the safety controller for Kobuki also works with Turtlebot 2. However, you have to adapt the launch file a bit. This modified version of kobuki_keyop/safe_keyop.launch file should allow you to drive your turtlebot around with the safety controller watching over it.

  Keyop configuration for working with the default Turtlebot launcher (minimal.launch). 
  <node pkg="nodelet" type="nodelet" name="kobuki_safety_controller" args="load kobuki_safety_controller/SafetyControllerNodelet mobile_base_nodelet_manager">
    <remap from="kobuki_safety_controller/cmd_vel" to="cmd_vel_mux/input/safety_controller"/>
    <remap from="kobuki_safety_controller/events/bumper" to="mobile_base/events/bumper"/>
    <remap from="kobuki_safety_controller/events/cliff" to="mobile_base/events/cliff"/>
    <remap from="kobuki_safety_controller/events/wheel_drop" to="mobile_base/events/wheel_drop"/>

  <node pkg="nodelet" type="nodelet" name="keyop_vel_smoother" args="load yocs_velocity_smoother/VelocitySmootherNodelet mobile_base
    <rosparam file="$(find kobuki_keyop)/param/keyop_smoother.yaml" command="load"/>
    <remap from="keyop_vel_smoother/odometry" to="odom"/>
    <remap from="keyop_vel_smoother/smooth_cmd_vel" to="cmd_vel_mux/input/teleop"/>

  <node pkg="kobuki_keyop" type="keyop" name="keyop" output="screen">
    <remap from="keyop/motor_power" to="mobile_base/commands/motor_power"/>
    <remap from="keyop/cmd_vel" to="keyop_vel_smoother/raw_cmd_vel"/>
    <param name="linear_vel_step"  value="0.05" type="double"/>
    <param name="linear_vel_max"   value="1.5"  type="double"/>
    <param name="angular_vel_step" value="0.33" type="double"/>
    <param name="angular_vel_max"  value="6.6"  type="double"/>
    <param name="wait_for_connection_" value="true" type="bool"/>

The major difference between kobuki_node/minimal.launch and turtlebot_bringup/minimal.launch is, that the latter already starts the velocity muxer. That plus few adjustments to the topic remappings is all that is needed.

I suggest, you start with this launch file and adapt it to your needs.

Good luck!

edit flag offensive delete link more


Yes I think this will work ! Thanks for the answer !

CarolineQ gravatar image CarolineQ  ( 2013-03-11 23:28:36 -0500 )edit

Question Tools


Asked: 2013-03-11 01:12:06 -0500

Seen: 1,804 times

Last updated: Mar 11 '13