4am-robotics / cob_driver

The cob_driver stack includes packages that provide access to the Care-O-bot hardware over ROS messages and services. E.g. for mobile base, arm, camera_sensors, scanners, etc...
www.care-o-bot.org
Apache License 2.0
102 stars 164 forks source link

[cob_sick_s300] two sensors have only the base_link as reference frame #426

Open SinanK94 opened 2 years ago

SinanK94 commented 2 years ago

The scans from my sensors (sensor_1 and sensor_2) are captured in an output "scan" which have a common frame_id (default: base_link). The problem on my mobile robot is that one sensor is placed in the front left and the other sensor is placed in the back right. Therefore, I cannot use the common frame base_link because a map is created from the base_link and not from the respective sensors.

I did try it to see if I could list the frame_ids, as with the input_scans parameter, but without success. Is there maybe another solution for this?

`

loop_rate: 100 input_scans: - scan_1 - scan_2 frame: base_link #default

`

Thanks in advance!

HannesBachter commented 2 years ago

You should introduce two frames (one for each scanner) that describe the position relative to the base link and set those links for the scanners. And in general, maps should be generated in map link, not in base_link

Maybe you should have a look at those first: