Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrajectoryReplacement does not merge Trajectories #421

Open
beschaef opened this issue May 24, 2019 · 0 comments
Open

TrajectoryReplacement does not merge Trajectories #421

beschaef opened this issue May 24, 2019 · 0 comments

Comments

@beschaef
Copy link

Hey Guys,
i'm trying to use the joint_trajectory_controller. Moving the Robot with Trajectories works really fine. But when i send a new Traj before the old one finished the robot is going to stop and then start the new trajectory. So the replacement is working, but the Trajecotories are not "merged".
Have you any idea what is going wrong?

Thanks for your help :)

Snippet of my launchfine

<arg name="spawn_controllers"
         default="$(eval 'arm_controller' + ' joint_state_controller')" />

    <rosparam command="load" file="$(find horst_driver)/config/controller_config.yaml" />

    <node name="controller_spawner" pkg="controller_manager" type="spawner"
          args="$(arg spawn_controllers)" />

controller_config.yaml

joint_names: [joint_1, joint_2, joint_3, joint_4, joint_5, joint_6]

joint_state_controller:
  type: joint_state_controller/JointStateController
  publish_rate: 50

arm_controller:
  #type: position_controllers/JointTrajectoryController
  type: velocity_controllers/JointTrajectoryController
  joints:
    - joint_1 #  same for 2-6
  publish_rate: 50

  gains: # Required because we're controlling a velocity interface
    joint_1: {p: 10,  d: 1, i: 1, i_clamp: 1} #  same for 2-6


  velocity_ff:
    joint_1: 1.0  #  same for 2-6

  constraints:
    stopped_velocity_tolerance: 0.02 # Override default
    joint_1: # same for 2-6
      trajectory: 0.005
  stop_trajectory_duration: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant