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

Unable to see odom and tf topics. #12

Open
Rak-r opened this issue Nov 7, 2023 · 1 comment
Open

Unable to see odom and tf topics. #12

Rak-r opened this issue Nov 7, 2023 · 1 comment

Comments

@Rak-r
Copy link

Rak-r commented Nov 7, 2023

I have cloned the repo for ros2.
My ROS2 version; Humble

I am running the node using ros2 run ros2_laser_scan_matcher laser_scan_matcher. However, it runs but I am not able to see odom and tf topics. I am having /scan topic from gazebo which is getting published in ros2 time.

Screenshot from 2023-11-07 18-11-07

Also, I tried to chnaging the laser frame id by doing ros2 param set, terminal says paramter set successful but still the laser_scan_matcher node outputs could not publish tf because base_link to laser frame do not exist

Then, I changed my laser frame name to laser and now the node do not output that message but still no topics are getting published and no odom to base link tf.
Set the publish tf param to true and the odom topic to 'odom'
could you provide some insight?@AlexKaravaev

@jagauthier
Copy link

jagauthier commented Mar 6, 2024

Did you resolve this? Please show the command line. In order to publish, you have to do something like this:

ros2 run ros2_laser_scan_matcher laser_scan_matcher \
--ros-args -p use_imu:=false \
--ros-args -p use_odom:=false \
--ros-args -p base_frame:=base_link \
--ros-args -p fixed_frame:=odom \
--ros-args -p publish_tf:=true \
--ros-args -p sigma:=0.1
--ros-args -p max_linear_correction:=0.10 \
--ros-args -p max_angular_correction_deg:=15.0 \
--ros-args -p kf_dist_linear:=0.1 \
--ros-args -p kf_dist_angular:=0.12 \
--ros-args -p max_correspondence_dist:=0.05

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

2 participants