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

How to set up robot_localization config when using differential: true

asked 2020-11-02 09:03:39 -0600

jorgemia gravatar image

I was reading the robot_localization docs and it says that when setting the differential parameter to true:

all pose (position and orientation) data is converted to a velocity by calculating the change in the measurement value between two consecutive time steps. The data is then fused as a velocity.

Does this mean that my config should set the position data to true or the velocity data to true?

i.e.

odom1_config: [true, true, false, # X Y Z
           true, true, true, # ROLL PITCH YAW
           false, false, false, # VX VY VZ
           false, false, false, # VR VP VY
           false, false, false] # AX AY AZ

or

odom1_config: [false, false, false, # X Y Z
           false, false, false, # ROLL PITCH YAW
           true, true, false, # VX VY VZ
           true, true, true, # VR VP VY
           false, false, false] # AX AY AZ

This is for an outdoor skid steer robot (two_d_mode false), with the odometry source described above coming from a ZED camera. The ZED odom topic only provides pose data, no Twist.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-03 10:49:20 -0600

I believe the former is correct. Since your odom source has no velocity data there is nothing there to use. If your camera is providing odometry then another question is where in your TF tree it is connected. Odom sources should always be children of the odom frame directly, while inertia sources should be off base_link (or equivalent). But I think the differential parameter does not change this, even if it feel like the nature of the source has been modified.

edit flag offensive delete link more

Comments

Ok, I think that makes sense because you're basically telling r_l which values to use for the differential parameter right? And they're actually fused as a velocity with the other sensors, but you still define the source as the actual data coming from your sensor (in my case x, y, roll, pitch, yaw).

My Tf tree looks like this: map -> odom -> base_footprint -> base_link -> zed_camera_centre and it seems to work correctly.

jorgemia gravatar image jorgemia  ( 2020-11-03 11:08:45 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-11-02 09:03:39 -0600

Seen: 121 times

Last updated: Nov 03 '20