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

kinetic-devel branch: erratic motion with ur3_ros_control launch file #220

Closed
AndyZe opened this issue Oct 23, 2018 · 3 comments
Closed
Labels
kinetic Issues with the refactor in Kinetic

Comments

@AndyZe
Copy link

AndyZe commented Oct 23, 2018

I find that both the /vel_based_pos_traj_controller and the /pos_based_traj_controller produce erratic motions for the UR3. The velocity-based controller is highly unstable and takes off immediately (video) while the position-based controller oscillates with large magnitude about the setpoint (video). The PID gains on the velocity-based controller are ridiculously high (Kp=50) but even if I turn them down to Kp=0.01, Kd=0.001, the robot is unstable. I'm not sure how to go about tuning the position-based controller because ros_control does not expose PID gains for it.

I launch with roslaunch ur_modern_driver ur3_ros_control.launch robot_ip:=192.168.1.102

No other ROS nodes were running and no commands were sent. I added the appropriate controller to ur3_moveit_config/config/controllers.yaml like this:

controller_list:
 - name: /vel_based_pos_traj_controller #or /pos_based_pos_traj_controller
   action_ns: follow_joint_trajectory
   type: FollowJointTrajectory
   default: true
   joints:
      - shoulder_pan_joint
      - shoulder_lift_joint
      - elbow_joint
      - wrist_1_joint
      - wrist_2_joint
      - wrist_3_joint

My UR3 software is version 3.5.0.1.10584, ur_modern_driver commit c4b2c73, universal_robot commit f528e20 (a.k.a. the most recent).

The default roslaunch ur_modern_driver ur3_bringup_joint_limited.launch works great.

@miguelprada
Copy link
Contributor

The velocity controller video looks like you may be hitting #206 more than an oscillation going unstable. Could you try with the fix proposed in #213 and see if that solves the problem for you?

Regarding the position controller, no PID gains are exposed because there's no PID controller involved at all. I'm truly baffled that you are experiencing that oscillatory behavior. Are you absolutely sure its the pos_based_pos_traj_controller you are running?

@AndyZe
Copy link
Author

AndyZe commented Oct 23, 2018

OK, I checked that the pos_based_pos_traj_controller was actually loaded. This time, it took off similar to how the vel_based_pos_traj_controller did.

I'm looking forward to testing your PR.

@gavanderhoorn gavanderhoorn added the kinetic Issues with the refactor in Kinetic label Oct 23, 2018
@AndyZe
Copy link
Author

AndyZe commented Oct 24, 2018

@miguelprada Your fix works well for me. I made a PR to set the PID gains for the UR3 velocity-based position controller to reasonable values.

@AndyZe AndyZe closed this as completed Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kinetic Issues with the refactor in Kinetic
Projects
None yet
Development

No branches or pull requests

3 participants