map frame from robot_localization
I am trying to create the standard tf frames specified in REP 105 (map, odom, and base_link) using the robot_localization package. I only have GPS and IMU sensors available. So far I have been able to create the odom and base_link frames, but I am having trouble creating the map frame.
This is my launch file:
<launch>
<node pkg="robot_localization" type="ukf_localization_node"
name="ukf_localization" clear_params="true" ns="ackermann_vehicle">
<param name="frequency" value="30"/>
<param name="sensor_timeout" value="0.1"/>
<param name="two_d_mode" value="false"/>
<param name="map_frame" value="map"/>
<param name="odom_frame" value="odom"/>
<param name="base_link_frame" value="base_link"/>
<param name="world_frame" value="map"/>
<param name="imu0" value="imu/data_compass"/>
<rosparam param="imu0_config">[false, false, false,
true, true, true,
true, true, true,
true, true, true,
true, true, true]</rosparam>
<param name="imu0_differential" value="true"/>
<param name="imu0_remove_gravitational_acceleration" value="true"/>
<param name="gps0" value="odometry/gps"/>
<rosparam param="gps0_config">[true, true, true,
false, false, false,
false, false, false,
false, false, false,
false, false, false]</rosparam>
<param name="gps0_differential" value="false"/>
</node>
<node pkg="robot_localization" type="navsat_transform_node"
name="navsat_transform_node" ns="ackermann_vehicle" respawn="true" output="screen">
<param name="magnetic_declination_radians" value="0"/>
<remap from="imu/data" to="imu/data_compass" />
<remap from="gps/fix" to="navsat/fix" />
</node>
</launch>
If I set the world_frame parameter to "odom", then things seem to work but I only have odom and base_link frames. If I set the world_frame to be "map", like above, then I get this error message: Could not obtain transform from odom->base_link.
Note that I am new to ROS, so my trouble may be conceptual. I would appreciate any help someone is willing to offer. Thank you!
You also appear to have X, Y, and Z velocity set to true for your IMU. Does it report velocities?
No. I had intended to review all of my use/don't-use settings after getting the frames sorted out, but those three are obviously wrong. Thank you!