ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how are you suppose to use the param tag

asked 2020-11-24 13:46:33 -0500

MisticFury gravatar image

updated 2020-11-24 13:47:08 -0500

im using rtabmap and i think im using the params wrong. where do i need to place them do they need to go inside the node tag like:

<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry">
        <param name="Odom/ResetCountdown"              value="1" />

or does it need to be outside the node tag like:

<param name="Odom/ResetCountdown"              value="1" />

<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry">

or do both methods work and if they do whats the different between the 2.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-11-24 16:58:44 -0500

matlabbe gravatar image

This one works:

<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry" output="screen">
        <param name="Odom/ResetCountdown"              value="1" />


[ INFO] [1606258509.200716411]: Setting odometry parameter "Odom/ResetCountdown"="1"

For rgbd_odometry, those parameters are private. To use the other approach, you should do (prefix with name of the node):

<param name="rgbd_odometry/Odom/ResetCountdown"              value="1" />
<node pkg="rtabmap_ros" type="rgbd_odometry" name="rgbd_odometry" output="screen"/>
edit flag offensive delete link more


ok i don't understand why but that still doesn't set the parameter and i decided to just rtabmap and do rosparam list and for some reason i don't see any of the odom parameters the 2 im trying to change are Odom/ResetCountdown and Odom/Strategy

MisticFury gravatar image MisticFury  ( 2020-11-24 19:34:31 -0500 )edit

nvm figured it out

MisticFury gravatar image MisticFury  ( 2020-11-24 20:05:36 -0500 )edit

rosrun rtabmap_ros rgbd_odometry --params

matlabbe gravatar image matlabbe  ( 2020-11-25 19:04:13 -0500 )edit

Question Tools

1 follower


Asked: 2020-11-24 13:46:33 -0500

Seen: 181 times

Last updated: Nov 24 '20