slam_toolbox icon indicating copy to clipboard operation
slam_toolbox copied to clipboard

karto-scan-visualization frame does not take mounting position into account

Open NikolasE opened this issue 3 years ago • 5 comments

Required Info:

  • ROS Version: ROS1/Noetic

Steps to reproduce issue

Use scanner that looks to the side, activate the interactive mode and select an interactive marker

Expected behavior

Visualized laserscan fits quite well to the map

Actual behavior

Visualized laserscan has wrong orientation (and maybe also position)

The laser-scanner is mounted so that it looks 90deg to the right (along robots negative y-axis). But it looks as if the frame sb_frame

If the frame is manually rotated by 90deg to the right, the laser fits sb_rotated

The frame is computed in void LoopClosureAssistant::processInteractiveFeedback and I think only the robots pose is used here (via solver_->GetNodeOrientation)

NikolasE avatar Mar 16 '21 16:03 NikolasE

I believe the updates in PRs #325 - #362 might fix this for you if we use the robot pose in the edges / nodes. Please try with a serialized file generated from one of those PR branches?

If that doesn't fix, a PR to resolve would be nice!

SteveMacenski avatar Mar 16 '21 16:03 SteveMacenski

@NikolasE did it solve your issue? They've also been merged, but it will only work on new serialized files with the new version

SteveMacenski avatar Mar 23 '21 21:03 SteveMacenski

I can check next week, my mapping setup is in the office am I'm not ;)

NikolasE avatar Mar 24 '21 09:03 NikolasE

How'd it go?

SteveMacenski avatar Apr 13 '21 17:04 SteveMacenski

@NikolasE I am facing the same issue on my setup w.r.t. the position of the laser scan, did you solve this in the end?

Wimll avatar Dec 03 '21 13:12 Wimll