# Revision history [back]

### How to create the odom --> base_link transform in gmapping

Hi

We are trying to run gmapping using ROS Indigo on Ubuntu 14.04 . The problem we are encountering is that the transform between "odom" and "base frame" is not created correctly. Even though we think it should exist since the transform is visible when echoing rostopic. Should the way we are launching gmapping work or is the problem that the robot is not publishing the transforms correctly? Also how do we create the transform between odom and base_link.

running:

rosrun rqt_tf_tree rqt_tf_tree

yields the following result:

As you can see the link between odom and base_link is missing

however when we run

rostopic echo cvc/tf

The transform between odom and base_link is visible

transforms:
-
seq: 0
stamp:
secs: 1539863401
nsecs: 756178000
frame_id: odom
transform:
translation:
<omitted to save space
rotation:
<omitted to save space>


We are using the following launch file:

<launch>
<param name="robot_description"
textfile="/home/pd/vmc/Thesis_tools/SLAM_launch/gmapping/charm.urdf" />

<node name="robot_state_publisher" pkg="robot_state_publisher"
type="robot_state_publisher" />

<node pkg="tf" type="static_transform_publisher" name="base_laser" args="0.23 0 0 0 0 0 1 base_link laser_frame 100" />

<node name="gmapper" pkg="gmapping" type="slam_gmapping" args=""  output="screen">
<param name="scan_frame" value="cvc/scan"/>
<param name="odom_frame" value="odom"/>