ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can publish a JointState Message to the topic (http://docs.ros.org/en/melodic/api/sensor_msgs/html/msg/JointState.html) containing the joint states of both joints. Subscriptions are always related to a topic not to a message. Maybe it is worth going through the tutorials, espiacally:Understanding topics.