-
Notifications
You must be signed in to change notification settings - Fork 44
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
Odom topic have no output #1
Comments
Have you checked rqt_graph, to check whether laser_scan_matcher subscribed to correct topic of laser scan? |
Yes I did that it appears that the laser_scan_matcher subscribes to the /scan topic but it didn't subscribe to the /tf topic. Also, it publishes /tf and /odom topics. |
I don't understand, node is publishing /tf and /odom topics or not?
I have checked now, it should publish both, if parameters are set correctly. Can you please check following things:
Also, it would be helpful if you post console output here when you launch the node. |
Thank you for the output, all looks fine for me. Due to the fact, that when you echo topic it says nothing, it maybe unmatched QoS settings. If the topic is not published it should say Can you double check in rviz, that odom is not published? |
Thank you for your quick response. |
Do you have any MWE? I've run all the latest files in simulation today and all worked fine. Also, you can double check that data arrives to the /scan topic. If you are using not the latest gazebo_ros_pkgs , it does use QoS by default, that will be unmatched by laser scanner (see this PR) If there is no data on the /scan topic, please update gazebo_ros_pkgs to latest version, it should fix all the issues. Otherwise, you can send your package here and I will see what's the issue, because on my machine all is working. |
I suggest you to build them from source, that way you guaranteed to get the latest version, but this issue is out of scope of this project, so I will close it |
Hello,
I'm working on a project in Ros2 foxy and I want to use the laser scan matcher to get the odometry from it.
I changed publish_odom param to "odom" and publish_tf to true and I still don't have an output when I run
ros2 topic echo /odom
. Also the tf tree has no odom frame on it.My diff drive plugin is the following:
<gazebo> <plugin filename="libgazebo_ros_joint_state_publisher.so" name="joint_states">
`
`
After spawning the robot I just run the laser_scan_matcher executable file.
Any idea please.
I thank you in advance
The text was updated successfully, but these errors were encountered: