Closed kokkalisko closed 3 months ago
Thanks for sharing your thought with us.
I have a couple of remarks:
servoj
) needs some cycles to correctly compute motion commands to get to a target position. It basically needs to look ahead of the next setpoint.Just an update:
At this point, I strongly think that this is not related to the UR driver (maybe related to the controllers) and I will close the issue. In case I ever come up with a solution I will update it.
Affected ROS2 Driver version(s)
2.1.2
Used ROS distribution.
Galactic
Which combination of platform is the ROS driver running on.
Ubuntu Linux with realtime patch
How is the UR ROS2 Driver installed.
From binary packets
Which robot platform is the driver connected to.
UR E-series robot
Robot SW / URSim version(s)
URSim 5.15.0 and real robot 5.14.5
How is the ROS driver used.
Through the robot teach pendant using External Control URCap
Issue details
Summary
I am trying to achieve precise synchronization of a UR5e robot with a moving conveyor to pick up objects. Either using URSim or the actual robot and MoveIt2 there is significant time difference (25 up to 100ms) between the plan and the actual execution.
Issue details
I have tried to minimize this delay making multiple changes:
joint_trajectory_controller
PREEMPT_RT
(have not changed any other related settings yet)pilz_industrial_motion_planner
For reference, there are a couple of things that have reduce drastically the delay:
Steps to Reproduce
1) Launch URSim (you can also test it with the real robot and change the robot IP) 2)
ros2 launch ur_bringup ur5e.launch.py robot_ip:=127.0.0.1 use_fake_hardware:=false launch_rviz:=false
3)ros2 launch ur_moveit_config ur_moveit.launch.py ur_type:=ur5e
4) Create a C++ node performing motions and time them using something along these lines: Positions: [0,0,0,0,0,3M_PI_22], [0,0,0,0,0,-3M_PI_22]Expected Behavior
The motion should last as much as predicted by the plan (up to a small time difference).
Actual Behavior
The log similar to this:
Relevant log output
No response
Accept Public visibility