Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The topic can (and should) be remapped. Otherwise, if you have two instances of robot_localozation, they will BOTH publish to the same output topic (not good). See below for remap example:

  <node name="RobotLocalizationCts" pkg="robot_localization" type="ekf_localization_node" respawn="true" output="screen" clear_params="true">
    <param name="frequency" value="20.0"/>
    <param name="print_diagnostics" value="false"/>
    <param name="sensor_timeout" value="3.0"/>
    <param name="two_d_mode" value="true"/>
    <param name="publish_tf" value="true"/>
    <param name="publish_acceleration" value="false"/>
    <param name="map_frame" value="map"/>
    <param name="odom_frame" value="odom"/>
    <param name="base_link_frame" value="base_footprint"/>
    <param name="world_frame" value="odom"/>
    <remap from="set_pose" to="robot_localization_cts/set_pose"/>
    <remap from="odometry/filtered" to="robot_localization_cts/odom"/>
    ...
    ...
    ...
  </node>