Ask Your Question

[solved] help needed: move_base planner not publishing

asked 2020-03-27 03:05:05 -0600

dschnabel gravatar image

updated 2020-03-28 01:01:03 -0600

Goal: I would like to see the paths generated by the global and local planner of move_base when I select a goal in RVIZ.

Problem: Planners are silent and don't publish anything to '/move_base/TrajectoryPlannerROS/global_plan' or '/move_base/TrajectoryPlannerROS/local_plan'. Any ideas what could be going wrong?


As far as I can tell I have properly hooked up all the topics to move_base: rosgraph.png

And the frames look okay too: frames.jpg

Once my launch file has started (logs here), I select a 2D Nav goal in RVIZ. This should publish the new goal to '/move_base_simple/goal' which indeed is happening:

$ rostopic echo /move_base_simple/goal
  seq: 5
    secs: 1585284848
    nsecs:  54221300
  frame_id: "t265_odom_frame"
    x: 1.12253463268
    y: -0.101541228592
    z: 0.0
    x: 0.0
    y: 0.0
    z: 0.0
    w: 1.0

I also verified that move_base is subscribed to this topic:

$ rostopic info /move_base_simple/goal
Type: geometry_msgs/PoseStamped

 * /rviz_1585284572168004938 (http://t430:38712/)

 * /move_base (http://rovy:44877/)
 * /rviz_1585284572168004938 (http://t430:38712/)

But I'm not getting any messages on '/move_base/TrajectoryPlannerROS/global_plan':

$ rostopic hz /move_base/TrajectoryPlannerROS/global_plan
subscribed to [/move_base/TrajectoryPlannerROS/global_plan]
no new messages
no new messages
no new messages
no new messages
no new messages

In RVIZ I have subscribed to the relevant topics that are needed to display the paths: image description

Yet nothing happens when I set a new goal. See this video.

Here are my yaml configurations for move_base:


obstacle_range: 2.5
raytrace_range: 3.0

footprint: [[-0.205, -0.155], [-0.205, 0.155], [0.077, 0.155], [0.077, -0.155]]

map_type: costmap
transform_tolerance: 5 # seconds

origin_z: 0.0
z_resolution: 0.2
z_voxels: 2
publish_voxel_map: false

observation_sources: point_cloud_sensor
point_cloud_sensor: {sensor_frame: d435_link, data_type: PointCloud2, topic: /rtabmap/cloud_map, marking: true, clearing: true}


   global_frame: map
   robot_base_frame: t265_odom_frame
   update_frequency: 1.0
   publish_frequency: 0.5
   static_map: true
   transform_tolerance: 0.5


   global_frame: map
   robot_base_frame: t265_odom_frame
   update_frequency: 5.0
   publish_frequency: 2.0
   static_map: true
   rolling_window: true
   resolution: 0.05
   transform_tolerance: 0.5


  max_vel_x: 0.45
  min_vel_x: 0.1
  max_vel_theta: 1.0
  min_in_place_vel_theta: 0.4

  acc_lim_theta: 3.2
  acc_lim_x: 2.5
  acc_lim_y: 2.5

  holonomic_robot: false

Edit Mar-27-2020:

Added video showing setting goals close to robot, see here.

RVIZ logs after setting goals:

[ INFO] [1585371517.565962249]: Setting goal: Frame:t265_odom_frame, Position(0.541, 0.076, 0.000), Orientation(0.000, 0.000, 0.054, 0.999) = Angle: 0.108

[ INFO] [1585371524.431341717]: Setting goal: Frame:t265_odom_frame, Position(-0.330, -0.041, 0.000), Orientation(0.000, 0.000, 0.996, -0.091) = Angle: -2.958

[ INFO] [1585371532.356154279]: Setting goal: Frame:t265_odom_frame, Position(0.397, -0.203, 0.000), Orientation(0.000, 0.000, -0.365, 0.931) = Angle: -0.746

rtabmap/move_base logs when/after setting a goal (nothing extra gets logged):

[ INFO] [1585371594.570278720]: Assembled 0 obstacle and 0 ground clouds (4784 points, 0.000046s)
[ INFO] [1585371594.571044454]: rtabmap (282): Rate=0.50s, Limit=0.000s, RTAB-Map=0.1183s ...
edit retag flag offensive close merge delete


Usually no plan is published when path planning failed. From the video it looks like you are setting the goal pretty close to the occupied wall. What happens if you set the goal about 20..30 cm in front of your robot?

Mork gravatar image Mork  ( 2020-03-27 04:52:45 -0600 )edit

Also, could you attach the logs after setting a goal in rviz?

Mork gravatar image Mork  ( 2020-03-27 04:53:42 -0600 )edit

Thanks @Mork, I've updated the description with a video showing setting goals close to the robot and also attached the logs after setting a goal. It seems nothing gets logged in move_base when I set a goal (even though I've enabled verbose logging, see full log).

Is there a way to find out if the planners actually receive a goal and attempt path planning? Would they log a debug message if they did?

dschnabel gravatar image dschnabel  ( 2020-03-28 00:18:48 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-03-28 01:00:38 -0600

dschnabel gravatar image

Ok solved it!!! The problem was that not all my ROS hosts were able to talk to each other.

t430 -> rovy worked fine, but rovy -> t430 did not work. This explains why 'move_base' which is running on host rovy did not receive goals from RVIZ running on host t430. When I checked the topic with rostopic echo /move_base_simple/goal I did that on t430, hence I didn't notice that they're not received on rovy.

Sorry guys, this was a bad setup on my end. Lesson learned: Always make sure that all the ROS nodes on all hosts can see and talk to each other.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-03-27 03:05:05 -0600

Seen: 291 times

Last updated: Mar 28 '20