-
Notifications
You must be signed in to change notification settings - Fork 22
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
No ability to set the frame_id in the scan message. #1
Comments
Related to this question |
I've spent hours trying to figure out what I was doing wrong and the workaround in the question you linked saved me a lot of headache so I just wanted to say thanks, and I hope that this can be fixed in the future. |
This should be pretty easy to fix, I will describe my proposal below. I've got to test it a bit more, but so far it seems to be working. Edit the following file: /ld08_driver/src/ld08_driver.cpp Insert following between lines 31(
Replace (on line 62):
with:
This should still set the default to "base_scan", but should honor the If desired, I could fork this repository and create a pull request with the proposed change. Also, as a side note, this issue is about the ROS1 variant of this driver and I tested it on ROS Kinetic on a Raspberry Pi 4 B 2GB. |
Yeah. That's how it's done with the LDS-01 version (starting at the main). If you want to fix it, I'm sure it would be appreciated. The problem also exists in ros2-devel (I just checked) so it wouldn't completely resolve this issue. However, a fix in ROS1 would already be half the work. I don't have the actual lidar myself (I'm the one who answered the related question, not asked it) so I won't be able to test it, yet your proposal looks solid. I'd say go for it, make the fork and create your PR. |
This is a proposed fix for the issue ROBOTIS-GIT#1, No ability to set frame_id in the scan message. It's only for the ROS1 version of the driver, but similar solution could probably be implemented for the ROS2 version as well.
Hi
Hi, |
As the title says. The frame_id is hardcoded to be
base_scan
. Meaning that robots with namespaces will have a link calledtb1/base_scan
in the tf, but the lidar keeps publishing with the frame_idebase_scan
.Funnily enough, the parameter is added to the launch file in this repo and the launch file in the turtlebot repo. This would give people the impression it should work, even if it doesn't.
The text was updated successfully, but these errors were encountered: