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

how are you suppose to use the param tag

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

MisticFury gravatar image

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

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" />
</node>

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">
</node>

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
0

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

matlabbe gravatar image

This one works:

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

Log:

...
[ 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

Comments

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 -0600 )edit

nvm figured it out

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

rosrun rtabmap_ros rgbd_odometry --params

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

Question Tools

1 follower

Stats

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

Seen: 192 times

Last updated: Nov 24 '20