teb_local_planner_tutorials icon indicating copy to clipboard operation
teb_local_planner_tutorials copied to clipboard

Incorrect starting position and map frame in RViz

Open pranshumalik14 opened this issue 4 years ago • 7 comments

I'm using ROS Melodic and after building the modified version of ros_stage provided here, the tutorials on dynamic obstacles work fine except for the incorrect local cost map in RViz and the location of the robot.

I have attached the pictures, and I haven't been able to track down why the initialization is wrong. No such warning message shows up on the terminal. But it seems like the problem is with some TFs are missing in the dyn_obst_corridor_scenario example.

It'll be great if someone can help me out with setting this up properly!

vel_estimation

dyn_obst_rviz rviz stage_ros tf

pranshumalik14 avatar Jun 26 '20 18:06 pranshumalik14

@croesmann it will be great if you can help out a bit

pranshumalik14 avatar Jun 28 '20 14:06 pranshumalik14

Also experiencing this issue.

beevabeeva avatar Aug 07 '20 13:08 beevabeeva

Just change the TF release in the launch file

DyedBamboo avatar May 13 '21 09:05 DyedBamboo

Just change the TF release in the launch file

I am facing the same issue. Can you please elaborate on your solution?

@croesmann

Shivam7Sharma avatar Jan 06 '23 01:01 Shivam7Sharma

I have the same issue. Does anyone have the solution?

peikun1990 avatar Jun 14 '23 07:06 peikun1990

I have the same issue. Does anyone have the solution?

Just change param in static_transform_publisher. Eg: <node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="0 0 0 0 0 0 1 /map /robot_0/odom 100" />

ksvbka avatar Jun 28 '23 07:06 ksvbka

I've just solved this problem, and I can provide the following two solutions: 1.Update your stage_ros following the content at this URL: https://github.com/ros-simulation/stage_ros/pull/63/commits/52d894eb3d322e7d86b380db6d8c4432a69ab8ab 2.Modify the static tf transformation statements in the dyn_obst_costmap_conversion.launch file related to the 'location file' to node pkg="tf" type="static_transform_publisher" name="perfect_loc_robot" args="0 0 0 0 0 0 /map /robot_0/odom 100, which means changing all transformation parameters to 0.(I cannot retain '<>' as it seems to cause this line of code to be missing in the response.) Now you can use this instance normally. I haven't checked the other instance yet to find the solution.

Rago777 avatar Oct 15 '23 13:10 Rago777