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

Robot position not updating in RVIZ

asked 2021-07-08 14:34:10 -0500

Shreyas gravatar image

updated 2022-03-25 17:38:58 -0500

lucasw gravatar image

The robot position in RVIZ is not updating. However, when I launch gmapping node with the "map" frame fixed, it will update. I am not able to find the reason for this.

edit retag flag offensive close merge delete

Comments

can you provide more details? what are you trying to do? and what is your config like?

siddharthcb gravatar image siddharthcb  ( 2021-07-08 23:48:41 -0500 )edit

@Shreyas Rviz just plots anything is the Screen with the support of your tf tree. If no proper tf is set up Rviz will be unable to plot anything. The reason why you have something poltted when runnin Gmapping is likely because the node is generating the tf frames connection that you missed when it is not running. You may want to chech yor tf tree connections.

Weasfas gravatar image Weasfas  ( 2021-07-09 05:29:41 -0500 )edit

The robot is configured via MAVROS/MAVLINK communication. I checked the tf. Everything is connected. The gmapping node will generate a "map" frame which will be connected to "odom" frame. similarly, If I use AMCL node, with the map frame fixed, it still same error. my email: shreysreddy@gmail.com if someone willing to help

Shreyas gravatar image Shreyas  ( 2021-07-09 14:38:23 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2021-07-09 08:03:11 -0500

As pointed out already you need to check your tf tree. These are some things you can check: 1. Is the robot state publisher node running? The robot state publisher will publish your joint angles of your robot to tf tree(the left and right wheel link of your robot). 2. The gmapping package expects that a base_link→odom transform already exists(this transform should come from your controller)

edit flag offensive delete link more

Comments

Thanks deepanshu for replying, I checked it again. robot state publisher is running, Yes in normal case also, the base_link-> odom transform exists which comes from the controller. Also, for more information, When I use navigation package to implememt path planning, the local planner does work and robot in the RVIZ does move. however, in global map it doesn't.
my email: shreysreddy@gmail.com if someone willing to help

Shreyas gravatar image Shreyas  ( 2021-07-09 14:43:48 -0500 )edit
0

answered 2021-07-08 20:39:54 -0500

maybe you should publish "odom" topic in some frequence

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-07-08 14:31:44 -0500

Seen: 793 times

Last updated: Jul 08 '21