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

Add sick lms151 to the atlascar2 simulation #33

Open
miguelriemoliveira opened this issue Apr 22, 2022 · 4 comments
Open

Add sick lms151 to the atlascar2 simulation #33

miguelriemoliveira opened this issue Apr 22, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request Low priority

Comments

@miguelriemoliveira
Copy link
Member

Just a 2d lidar as we used in PSR, configured with the lms 151 parameters.

@manuelgitgomes
Copy link
Collaborator

@manuelgitgomes
Copy link
Collaborator

I used this package, but an error appeared:
image
This is due to the tf_preffix. When defining the sensor, a frame needs to be defined, which is left_laser:

<!-- left lms151 laser -->
<xacro:sick_lms1xx frame="left_laser" topic="/left_laser/scan"/>
<joint name="base_link_to_left_laser" type="fixed">
<origin xyz="${length/2 + length_offset - 0.08} 0.76 ${height_offset+0.27}" rpy="0 0 ${0.7854}"/>
<parent link="base_link"/>
<child link="left_laser"/>
</joint>

The problem is that this xacro creates the link and the sensor. So it defines the frame_id of the sensor messages as left_laser, which does not exist, existing in its part atlascar2/left_laser.
If I change the value of the xacro to atlascar2/left_laser, while the frame_id changes to the atlascar2/left_laser, the link created is called atlascar2/atlascar2/left_laser, making the frame_id wrong.
Should I try to change this on the xacro, making a fork of the original repo?

@miguelriemoliveira
Copy link
Member Author

Hi @manuelgitgomes ,

I think we can solve it. Let's work a bit on this in sync mode next week ok?

@manuelgitgomes
Copy link
Collaborator

Ok sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low priority
Projects
None yet
Development

No branches or pull requests

2 participants