# Prismatic joint doesn't create the tf

I am trying to build a "train", so I have created a prismatic joint between the train (at this moment is modeled as a box) and the rail. The problem is that despite this joint is created and can be controlled, it moves by itself (a few mm per sec) and its tf is not being publicated.

The spawning procces does not show any error and rviz says that no tf can be found from the world to the train. However, if I change the prismatic joint to a fixed one, the tf are created in the right way.

<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:macro name="Train" params="parent">

<collision name="Train collision">
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry >
<box size="1.882 0.278 0.430"/>
</geometry>
</collision>

<visual name="Visual Train">
<origin xyz="0 0 0" rpy="0 0 0"/>
<geometry>
<box size="1.882 0.278 0.430"/>
</geometry>
</visual>

<inertial>
<origin xyz="0 0 0" rpy="0 0 0"/>
<mass value="0.1"/>
<inertia
ixx="1.0" ixy="0.0" ixz="0.0"
iyy="1.0" iyz="0.0"
izz="1.0"/>
</inertial>