Ask Your Question

Joint does not stop sliding

asked 2012-07-23 04:52:38 -0600

prasanna.kumar gravatar image

Hi, I have created a model of the sliding door in gazebo. This is the code:

<?xml version="1.0" ?>
<robot name="door_balcony">

  <gazebo reference="base_bac">
  <link name="world"/>
  <joint name="link_joint_bac" type="prismatic">
    <axis xyz="-1 0 0"/>
    <parent link="world"/>
    <origin rpy="0 0 1.57" xyz="10.615 6.25 1.06"/>
    <limit effort="10.0" lower="-0" upper="0.8" velocity="0.5"/>
    <child link="link_bac"/>
    <dynamics damping="1" friction="10"/>
  <link name="link_bac">
      <mass value="10"/>
      <origin xyz="0 0 0"/>
      <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="0.1" iyz="0.0" izz="0.1"/>
      <origin rpy="0 0 0" xyz="0 0 0"/>
        <box size="0.8 0.06 2"/>
      <origin rpy="0 0 0" xyz="0 0 0"/>
        <box size="0.8 0.06 2"/>
  <gazebo reference="link_bac">

When I apply the joint effort it starts sliding from lower to higher limits.

rosservice call gazebo/apply_joint_effort '{joint_name: link_joint_bac, effort: 1, start_time: 10000000000, duration: 100000000}'

But when delete the joint force right at the time when the door is fully open, It does not stop sliding.

rosservice call gazebo/clear_joint_forces '{joint_name: link_joint_bac}'

Is there a mistake in my understanding or code ? Is there any other way to start and stop joint motion in gazebo ?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-08 10:22:26 -0600

gordon gravatar image

You can apply an opposite force instead of clearing the joint effort. I hope this helps!

edit flag offensive delete link more


I solved the problem long back. Anyway, thanks!

prasanna.kumar gravatar image prasanna.kumar  ( 2012-08-08 10:30:31 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-07-23 04:52:38 -0600

Seen: 544 times

Last updated: Aug 08 '12