Closed LEESHOHYUN closed 2 years ago
I am not sure whether I understand your question correctly. But if you want to understand where the subscription to the topic comes from, you'll have to dig into ros_control a bit. The scaled JTC is a modified joint_trajectory_controller
, so you'll find its action server there:
(or, since you asked for the command
topic, see this line.)
Inside this repository the controller is defined in the controllers.yaml
file:
As it is named scaled_pos_joint_traj_controller
, ros_control generates a node handle using the controller name and adds the command
topic inside this namespace, hence the /scaled_pos_joint_controller/command topic
.
I hope, this answers your question, if not please try to specify your question a bit more.
It's a perfect answer for my question. I appreciate your help so much!
when I saw rqt_graph, with roslaunch ur hardware driver ~ and rosrun rqt_controller ~, I can see /scaled_pos_joint_controller/command topic, but I cannot find where it defined. and also cannot understand, from {topic_a}/{topic b} architecture, how 'topic b' is added. may I ask where to find, and how to add topic after / ??