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

Incorrect tf frame id #1

Closed
bponsler opened this issue Aug 3, 2017 · 1 comment
Closed

Incorrect tf frame id #1

bponsler opened this issue Aug 3, 2017 · 1 comment

Comments

@bponsler
Copy link
Owner

bponsler commented Aug 3, 2017

Copied from here:

I have tried the code from https://github.com/bponsler/urg_node/tree/ros2-devel. it could work but has issue.
since I did not find the place to submit a issue on https://github.com/bponsler/urg_node1. so I write here.

Error: :“urg_node” passed to lookupTransform argument target_frame does not exist.

Reproduce:
root@robot1:~# urg_node
Connected to serial device with ID: H1626063
Streaming data.

root@robot1:~# ros2 run tf2_ros tf2_echo urg_node urg_node
Failure at 1501769676.54089
Exception thrown:“urg_node” passed to lookupTransform argument target_frame does not exist.
The current list of frames is:

Failure at 1501769677.44048
Exception thrown:“urg_node” passed to lookupTransform argument target_frame does not exist.
The current list of frames is:

bponsler added a commit that referenced this issue Aug 6, 2017
Exposed the laser frame parameter as a command line argument --laser-frame-id

Closes issue #1
@bponsler
Copy link
Owner Author

bponsler commented Aug 6, 2017

The default frame id for the urg_node is "laser" (not "urg_node") so you would need to do:

ros2 run tf2_ros tf2_echo laser laser

To view the laser frame. Note that it takes a few cycles for it to receive the tf frames so it will display the exception a few times before finally finding the frame.

Additionally, I exposed the frame id as a parameter to urg_node which can be done in the following ways:

urg_node --laser-frame-id my_laser_frame
ros2 run urg_node urg_node -- --laser-frame-id my_laser_frame

@bponsler bponsler closed this as completed Aug 6, 2017
aarushg22 added a commit to aarushg22/urg_node that referenced this issue Jun 13, 2018
…SERAGV-4664

Added a urdf file for the ease of laser scan visualization
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

1 participant