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

Laserscan and Marker visualization don't agree #55

Open
RGring opened this issue Oct 11, 2018 · 2 comments
Open

Laserscan and Marker visualization don't agree #55

RGring opened this issue Oct 11, 2018 · 2 comments

Comments

@RGring
Copy link

RGring commented Oct 11, 2018

I have people (modeled with two circles for the legs) walking around. They follow a specified path.
For that I apply velocities and position transformations to the models.
As result, the marker visualization is doing what's expected, but the laser scan data isn't. The legs are registered at the right position, but not in the right orientation. It is always the initialized orientation ( 0° --> see image).
If I remove the absolute transformations and just apply linear and angular transformations, the error remains.
scan_marker_viz

@josephduchesne
Copy link
Member

josephduchesne commented Oct 11, 2018

Are the bodies "awake"? You'll note that the tween plugin has to call

body_->physics_body_->SetAwake(true);

on the moving object in order to get Box2d to register movement.

If you already are, I can try to reproduce this as it might be a bug in flatland.

@RGring
Copy link
Author

RGring commented Oct 12, 2018

I had the density = 0. When setting it to a non-zero value, it works. You can easily reproduce it by spawning two robots and turning one. It results in the same effect.

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

2 participants