Reputation: 145
I create a custom URDF in Solidworks and simulate it in ROS when ever I launch the robot in the gazebo simulator the arm fall to the ground. the robot is perfectly fine in rviz.
Upvotes: 1
Views: 933
Reputation: 51
You should add a world link like blow to your URDF file:
<link name="world" />
<joint name="robot_in_world" type="fixed" >
<origin xyz="0 0 0.0" rpy="0 0 0" />
<parent link="world" />
<child link="robot_base_link" />
<axis xyz="0 0 1" />
</joint>
Upvotes: 1
Reputation: 1197
That is because you are not sending any signals to the joints, so it is behaving as links connected to a movable joint that is not powered. You need to:
Define the joints as fixed joints as
<joint name="footprint" type="fixed" >
<parent link="base_footprint" />
<child link="base_link" />
<origin xyz="0 0 0.05" rpy="0 0 0" />
</joint>
or add a controller
to your system as described here.
Follow the Gazebo ROS Control to add those to your system and be able to interact with your joints via the joint_state_publisher
topic.
Upvotes: 3