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

Problem with publishing a global path on topic /move_base/TrajectoryPlannerROS/global_plan

asked 2014-01-24 07:04:40 -0600

Anis gravatar image

updated 2014-01-24 20:27:59 -0600


I made a small program that publishes a plan on the topic

Here goes the idea

for (int i=0; i<10; i++){
geometry_msgs::PoseStamped new_goal ;
tf::Quaternion goal_quat = tf::createQuaternionFromYaw(1.54);


 new_goal.pose.position.x = GPAS.InitialPoseMessage.pose.pose.position.x+(0.1*i);
 new_goal.pose.position.y = GPAS.InitialPoseMessage.pose.pose.position.x+(0.1*i);

 new_goal.pose.orientation.x = 0;
 new_goal.pose.orientation.y = 0;
 new_goal.pose.orientation.z = 0;
 new_goal.pose.orientation.w = 1;



 GPAS.GlobalPlanPublisher.publish(plan); // topic /move_base/TrajectoryPlannerROS/global_plan

When I do rostopic echo /move_base/TrajectoryPlannerROS/global_plan

I can see well the published plan correctly. However, the turtlebot robot does not move and does not follow the plan, although the plan is correctly shown in rviz. I already run amcl and move base launch files and the robot moves if I send a goal from rviz.

i wanted to test of the robot moves if I send a plan instead of a goal.

Do you have an idea what could be the issue? Is it sufficient to make the robot moving by sending a plan in topic /move_base/TrajectoryPlannerROS/global_plan or some configuration need to be made?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-01-22 00:21:43 -0600

ryleymcc gravatar image

I would like to know how to do this to pre-record a global path for my local_planner to follow.

edit flag offensive delete link more


Please delete your answer and post it as a comment.

skpro19 gravatar image skpro19  ( 2021-06-10 14:00:01 -0600 )edit

Question Tools



Asked: 2014-01-24 07:04:40 -0600

Seen: 1,638 times

Last updated: Jan 22 '21