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

jauer's profile - activity

2019-03-01 12:45:42 -0500 marked best answer Problem with robot_localization transforms

Hey!

I am experimenting with robot_localization and amcl. I use a simulated turtlebot 3 which is in the /robot1/ namespace and has robot1_tf as tf-prefix.

I use a robot_localization ekf for the robot1_tf/odom frame and a separate one for the map. The problem here is that this map ekf always uses robot1_tf/map as map frame. But I need map as map-frame. I tried various combinations but that didn't change it.

My launch file looks like that:

<group ns=robot1">
    <param name="tf_prefix" value="robot1_tf" />

    <node pkg="robot_localization" type="ekf_localization_node" name="ekf_se_odom" clear_params="true">
          <rosparam command="load" file="$(find tb3_lidar_navigation)/params/odom_ekf.yaml" />
    </node>

    <node pkg="robot_localization" type="ekf_localization_node" name="ekf_se_map" clear_params="true">
      <remap from="odometry/filtered" to="odometry/filtered_map"/>
      <rosparam command="load" file="$(find tb3_lidar_navigation)/params/map_ekf.yaml" />
    </node>

    <!--- Run AMCL -->
    <include file="$(find tb3_lidar_navigation)/launch/amcl.launch.xml">
          <arg name="robot_ns"       value="$(arg robot_ns)"/>
          <arg name="robot_tf"       value="$(arg robot_tf)"/>
          <arg name="initial_pose_x" value="$(arg initial_pose_x)"/>
          <arg name="initial_pose_y" value="$(arg initial_pose_y)"/>
          <arg name="initial_pose_a" value="$(arg initial_pose_a)"/>
          <arg name="tf_broadcast"   value="false"/>
    </include>
  </group>

The config file for the map_ekf looks like that:

frequency: 30
sensor_timeout: 0.1
two_d_mode: true
transform_time_offset: 0.0
transform_timeout: 0.0
print_diagnostics: true
debug: false    

map_frame: map
odom_frame: odom
base_link_frame: base_footprint
world_frame: map

odom0: odom
odom0_config: [false, false, false,
               false, false, false,
               true,  true,  true,
               false, false, true,
               false, false, false]
odom0_queue_size: 10
odom0_nodelay: true
odom0_differential: false
odom0_relative: false

pose0: amcl_pose
pose0_config: [true,  true,  false,
               false, false, false,
               false, false, false,
               false, false, false,
               false, false, false]
pose0_queue_size: 10
pose0_nodelay: true
pose0_differential: false
pose0_relative: false

imu0: imu
imu0_config: [false, false, false,
              true,  true,  false,
              false, false, false,
              true,  true,  true,
              true,  true,  true]
imu0_nodelay: true
imu0_differential: false
imu0_relative: false
imu0_queue_size: 10
imu0_remove_gravitational_acceleration: true

use_control: false

Does anybody know how I can change the map frame? Thanks!

2017-12-21 09:50:56 -0500 received badge  Famous Question (source)
2017-11-05 20:40:04 -0500 received badge  Notable Question (source)
2017-11-03 03:43:25 -0500 commented question Problem with robot_localization transforms

Same again. Is it possible that the filter somehow also uses the frames which are used in the subscribed sensor topics?

2017-11-02 13:40:18 -0500 received badge  Popular Question (source)
2017-11-02 03:18:49 -0500 commented question Problem with robot_localization transforms

Thank you! I already tried that and it resulted in the same tf-tree as without slash. So this is no solution.

2017-11-01 15:03:51 -0500 received badge  Editor (source)
2017-11-01 15:03:51 -0500 edited question Problem with robot_localization transforms

Problem with robot_localization transforms Hey! I am experimenting with robot_localization and amcl. I use a simulated

2017-11-01 15:02:49 -0500 asked a question Problem with robot_localization transforms

Problem with robot_localization transforms Hey! I am experimenting with robot_localization and amcl. I use a simulated

2017-11-01 03:21:31 -0500 edited question Problem with robot_localization example

Problem with robot_localization example Hey! I have a problem with the examples from robot_localization package. My gaz

2017-10-31 14:01:20 -0500 asked a question Problem with robot_localization example

Problem with robot_localization example Hey! I have a problem with the examples from robot_localization package. My gaz