UniversalRobots / Universal_Robots_ROS2_Description

ROS2 URDF description for Universal Robots
BSD 3-Clause "New" or "Revised" License
110 stars 107 forks source link

Added trajectory port and prefixed gpios #47

Closed firesurfer closed 1 year ago

firesurfer commented 1 year ago

Hi everyone. This adds the trajectory_port field to the ros2control part of the xacro and adds the prefix also to the gpio elements. This is needed in order to get support for multiple arms up and running.

This is the first part of hopefully a full set of PRs that will enable support for multiple arms

fmauch commented 1 year ago

this looks good to me. But I have a question about trajectory port. How are you using it?

That answer might go out of scope here a little, hence this will be a bit brief:

In the ROS1 driver we used this for our trajectory forwarding controllers. Those were basically forwarding a trajectory setpoint by setpoint and interpolation is being done on the robot. We've used direct servoj commands with a (unfortunately hardcoded) blending radius to then execute the trajectory on the robot. With https://github.com/UniversalRobots/Universal_Robots_Client_Library/pull/103 we could do a spline interpolation similar to the one done by the JTC on the robot. The main benefit of this would be reduced real-time requirements on the ROS side at the cost of (IMHO) flexibility. @destogl we could discuss this further, but that's probably better done in some control scope. In the context of this PR this is relevant, since the client library is opening a trajectory interface on that port, which will clash with multiple instances.

firesurfer commented 1 year ago

@fmauch Just realized I forgot the trajectory port in the ur_macro.xacro

fmauch commented 1 year ago

Note: I'll merge this once I tested https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver/pull/567 with this.

firesurfer commented 1 year ago

There will be some updates to both PRs coming today and tomorrow from my side. Just got the chance today to test it with hardware!

Felix Exner (fexner) @.***> schrieb am Di., 13. Dez. 2022, 10:40:

Note: I'll merge this once I tested UniversalRobots/Universal_Robots_ROS2_Driver#567 https://github.com/UniversalRobots/Universal_Robots_ROS2_Driver/pull/567 with this.

— Reply to this email directly, view it on GitHub https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/pull/47#issuecomment-1348064292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAWYDQMTSWL2NT7AP3DGYLWNBAAXANCNFSM6AAAAAASZC7F6M . You are receiving this because you were mentioned.Message ID: <UniversalRobots/Universal_Robots_ROS2_Description/pull/47/c1348064292@ github.com>

firesurfer commented 1 year ago

Rebased the changes into one commit with a usefull commiit message