I am trying to import a custom robot into gazebo. I designed it in solidworks, used the urdf converter and copied the package into the ROS workspace. The robot appears just fine in Rviz and all the joints are working they way they're supposed to. However, when I run the launch file for gazebo, the robot spawns as show in the figure below. I don't know what could be causing that kind of behaviour. I'm using ROS Indigo with Gazebo 2.2.6.
Thanks in advance


Here's the urdf file if anyone wants to take a look.
transmission_interface/SimpleTransmission EffortJointInterface EffortJointInterface 1 transmission_interface/SimpleTransmission EffortJointInterface EffortJointInterface 1 transmission_interface/SimpleTransmission EffortJointInterface EffortJointInterface 1 transmission_interface/SimpleTransmission EffortJointInterface EffortJointInterface 1 transmission_interface/SimpleTransmission EffortJointInterface EffortJointInterface 1