Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robot initial position in Rviz / gazebo mismatched #5

Closed
pringithub opened this issue Aug 5, 2019 · 6 comments
Closed

Robot initial position in Rviz / gazebo mismatched #5

pringithub opened this issue Aug 5, 2019 · 6 comments

Comments

@pringithub
Copy link

Hello,

Thank you for this repo! Unfortunately, every time I try to run the demo using a saved map, the rviz coordinates of the robot do not match up to the ones in gazebo (the init_pos in gazebo is always the same). Obviously, the incorrect init_pos leads to errors in localization.

berp

@lukaszmitka
Copy link
Contributor

Hello,

Them map visible in Rviz screen is not exactly resembling environment from Gazebo (take a look at jersey barrier in Gazebo and three rectangles in Rviz at location of jersey barrier). The three obstacles should be continuous and form single rectangle, as long as they don't, we need to assume that map was build incorrectly. On distorted map, position will also be wrong.

Please try to create and save map again.

Regards,
Łukasz

@pringithub
Copy link
Author

Hi Lukasz,

I've tried creating and saving maps multiple times now. Every time I do this, I get either an incorrect map (a few times very incorrect, or an incorrect starting position. I didn't modify any of the code, and I'm running on a pretty powerful machine with an NVIDIA GPU.

@lukaszmitka
Copy link
Contributor

Could you then record screen showing as you are creating the map and it is getting incorrect?

@adamkrawczyk
Copy link
Contributor

I'm closing this issue, because of no activity.

@pls30
Copy link

pls30 commented Jul 2, 2020

I have similar problems, even when driving the robot it moves in the gazebo, in rviz it remains still in its initial position. In rviz everything dances, even the wheels of the robot. I am using the lidar CPU as suggested in the tips.

@Hubert424
Copy link
Member

Please send us screenshot of Rviz window and log file from starting roslaunch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants