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

TIM510 Scandata missaligned and distorted #98

Open
maxkremmel opened this issue Nov 12, 2022 · 2 comments
Open

TIM510 Scandata missaligned and distorted #98

maxkremmel opened this issue Nov 12, 2022 · 2 comments

Comments

@maxkremmel
Copy link

Hello,
I think by looking at the following two images, my problem becomes obvious.
In SOPAS ET the scan looks correct:
Unbenannt
But in rviz the scan is rotated about 45 degrees counterclockwise, and it is also distorted. All contours should be perpendicular to each other:
grafik

Are there some parameters I missed so far to tune the sensor?

Steps to reproduce second image:

  • Power Sensor witch 12V
  • Connect Sensor via USB witch PC
  • execute command "roslaunch sick_tim sick_tim310s01.launch"
  • open rviz and add LaserScan and TF
@maxkremmel
Copy link
Author

I found a workaround...

I edited the sick_tim310s01_parser.cpp file to set the following values of the sensor_msgs/LaserScan message published over the topic /scan, manually:
angle_min: -2.356194496154785
angle_max: 2.356194496154785
angle_increment: 0.01745329238474369

Seams like something goes wrong when calculating angle_min, anlge_max and angle_increment.

But I still think I did something wrong because according to #97, the sick_tim310s01 should work without modifications.

@mintar
Copy link
Member

mintar commented Nov 14, 2022

I'm glad you found a workaround! Indeed, it looks like the 3 values you changed manually were not correctly parsed from the datagram (especially angle_increment). I don't have time to debug this any further, but if you want to submit a pull request, I'll be happy to review an merge it.

Also there's an extended fork of this repo here: sick_scan. Maybe you have more luck with that repo.

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