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

Bumper sometimes is offset from body in Rviz #170

Open
roni-kreinin opened this issue Mar 23, 2022 · 2 comments
Open

Bumper sometimes is offset from body in Rviz #170

roni-kreinin opened this issue Mar 23, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@roni-kreinin
Copy link
Collaborator

Describe the bug
If you launch robot_description.launch.py followed by Rviz2 sometimes the bumper will appear offset from the body in Rviz.
Collisions have the same effect. Restarting Rviz fixes the issue.

If Rviz is launched before the description, the model will spawn normally. Only seems to occur if the description is launched first, although it is not consistent.

To Reproduce
Steps to reproduce the behavior:

ros2 launch irobot_create_common_bringup robot_description.launch.py

ros2 launch irobot_create_common_bringup rviz2.launch.py

Expected behavior
Bumper is correctly attached to body.

Screenshots
image

image

Additional context
Add any other context about the problem here.

@roni-kreinin roni-kreinin added the bug Something isn't working label Mar 23, 2022
@gbr1
Copy link

gbr1 commented Jul 31, 2022

It happens the same with me! I was loosing my mind on it!
iRobotEducation/create3_docs#124

@roni-kreinin
Copy link
Collaborator Author

The robot seems to be publishing a different transform from base_link to bumper_front_center than what is described in the urdf:

Robot /tf_static:

- header:
    stamp:
      sec: 1675981068
      nanosec: 277544281
    frame_id: base_link
  child_frame_id: bump_front_center
  transform:
    translation:
      x: 0.17499999701976776
      y: 0.0
      z: 0.039000000804662704
    rotation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0

robot_state_publisher /tf_static from urdf:

transforms:
- header:
    stamp:
      sec: 1675981179
      nanosec: 75899446
    frame_id: base_link
  child_frame_id: bump_front_center
  transform:
    translation:
      x: 0.0
      y: 0.0
      z: 0.039200000000000006
    rotation:
      x: 0.0
      y: 0.0
      z: 0.0
      w: 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants