ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

New ur modern driver ros-control follow joint trajectory

asked 2019-07-08 11:59:25 -0500

Victor Wu gravatar image

I used to drive the ur3 using action client for follow joint trajectory. Now I have upgraded the ur modern driver that I should be able to use ros control but I don’t know how to. The README of the new driver says that when ros control is active the action lib will not be switched on. So how can I send the joint trajectory to the driver for execution?

Your help would be very much appreciated.

Victor Wu.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-07-08 15:41:12 -0500

gvdhoorn gravatar image

updated 2019-07-09 02:00:30 -0500

The ros_control configuration of ur_modern_driver typically loads the joint_trajectory_controller (here for the UR3).

That controller exposes a FollowJointTrajectory action server, just as the non-ros_control version of ur_modern_driver does.

Provided your trajectories are well-formed, you shouldn't need to change anything in your code -- apart from perhaps the name of the action topic (but that you should be able to just remap).


Edit:

My actual question should be: Do we need a different trajectory that specifies the velocity instead of the position of every way point? Or does the driver already work out the velocity from the position specified?

the "velocity based" joint_trajectory_controller uses a velocity controlled hw interface and uses that to run a position control on top of that. So it's positions in -> velocities out. It can not be used as a pure velocity controller (ie: velocity in -> velocity out).

Anyway, I tried using the vel_based action server but then the ur3 stopped by the controller because of safety! I am not sure why yet.

I don't know either, that would require more debugging.

Just to make sure: you have a regular UR3 (no e-series) and are using teh kinetic-devel version of ur_modern_driver?

edit flag offensive delete link more

Comments

This uses the pos_based_pos_traj_controller, can I use the vel_based_pos_traj_controller? but use the same action client?

Victor Wu gravatar image Victor Wu  ( 2019-07-08 20:20:06 -0500 )edit

The link I posted was just an example. A few lines down the velocity-based joint_trajectory_controller is configured (here).

They expose the exact same FollowJointTrajectory action server.

gvdhoorn gravatar image gvdhoorn  ( 2019-07-09 01:48:36 -0500 )edit

Thanks very much, I realised that that part of the yaml is there. My actual question should be: Do we need a different trajectory that specifies the velocity instead of the position of every way point? Or does the driver already work out the velocity from the position specified? Anyway, I tried using the vel_based action server but then the ur3 stopped by the controller because of safety! I am not sure why yet.

Victor Wu gravatar image Victor Wu  ( 2019-07-09 01:55:59 -0500 )edit

The actual error was: A dialogue box with the title Protective Stop, the box contains: C153A1: Protective Stop: Postion deviates from path: Shoulder.

Victor Wu gravatar image Victor Wu  ( 2019-07-09 02:12:09 -0500 )edit

I have tried all afternoon. It seems that the behaviour of the ur3 depends on the velocity that it moves. There is a slider on the UR teach pandent and can be used to adjust the speed the manipulator moves. When it is 100%, when the manipulator halfway to the destination, it was stopped because its position deviates from the path. When the slider is used to reduce the speed of the manipulator to 70%, it crashes on the workpiece before it reaches the target (or goal). When the speed is 80%, it still crashes on the workpiece but nearer to the target. So, it seems the position of the end effector depends on the speed of movement as well as the weight of the end effector. Is this true? I am just guessing.

Victor Wu gravatar image Victor Wu  ( 2019-07-09 06:05:41 -0500 )edit

You cannot use the slider on the TP: it must be at 100% always. Otherwise the assumptions in the driver about performance of the robot and the influence of the parameters for the motion commands don't hold and nothing will work correctly.

gvdhoorn gravatar image gvdhoorn  ( 2019-07-09 06:14:01 -0500 )edit

But you still haven't answered my questions: are you using a regular UR3 or an e-series, and are you using the kinetic-devel branch of ur_modern_driver?

gvdhoorn gravatar image gvdhoorn  ( 2019-07-09 06:14:31 -0500 )edit

I'm sorry. Yes, I am using a regular UR3 not an e-series. I am using the kinetic-devel branch of the ur_modern_driver.

Further my questions, does it mean that the payload must be accurately specified? It seams that all these relationship of position, velocity and acceleration depends also on the inertia. So the pay load is very important and sensitive. Isn't it?

Victor Wu gravatar image Victor Wu  ( 2019-07-09 06:21:53 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2019-07-08 11:59:25 -0500

Seen: 868 times

Last updated: Jul 09 '19