UniversalRobots / Universal_Robots_ROS2_Description

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

First hacky implementation of reusing the initial_positions for view_ur #24

Open fmauch opened 2 years ago

fmauch commented 2 years ago

As we have the config file in place already, anyway, we can also use the parameters.

There are a couple of things I don't like about this implementation:

Possible workaround 1: Include separate file With defining a separate file with content

joint_state_publisher:
  ros__parameters:
    zeros:
      shoulder_pan_joint: 0.0
      shoulder_lift_joint: -1.57
      elbow_joint: 0.0
      wrist_1_joint: -1.57
      wrist_2_joint: 0.0
      wrist_3_joint: 0.0

we could pass that file to the node directly. However, this would be config duplication.

As I couldn't come up with a better solution, I postet a question on ROS answers: https://answers.ros.org/question/396653/ros2-python-launchfile-load-parametersyaml-into-nodes-parameter/

fmauch commented 2 years ago

I've actually found that pattern in the industrial-training