Hi,
(*Using ROS Melodic in Ubuntu)
I am loading a yaml with 4 controllers + joint_state_controller in a namespace. Yaml aspect:
ch1_joint_state_publisher:
type: "joint_state_controller/JointStateController"
publish_rate: 50
ch1_controller_ur:
type: "effort_controllers/JointEffortController"
joint: "joint1"
....
Then, I try to spawn them using a controller_manager node. However, the node only finds the rosparam if I explicitly put the namespace, like that:
<rosparam command="load" file="$(find ch1_simulator)/controllers/wheels_controllers.yaml"
ns="ch1_controllers"/>
<node name="ch1_controller_spawner" pkg="controller_manager" type="spawner"
args= "/ch1_controllers/ch1_joint_state_publisher
/ch1_controllers/ch1_controller_ur
/ch1_controllers/ch1_controller_ul
/ch1_controllers/ch1_controller_br
/ch1_controllers/ch1_controller_bl"/>
However, the node is not able to find the param by using the --namespace arg:
<rosparam command="load" file="$(find ch1_simulator)/controllers/wheels_controllers.yaml"
ns="ch1_controllers"/>
<node name="ch1_controller_spawner" pkg="controller_manager" type="spawner"
args= "--namespace=/ch1_controllers
ch1_joint_state_publisher
ch1_controller_ur
ch1_controller_ul
ch1_controller_br
ch1_controller_bl"/>
I would really appreciate any clue about it or what I am missing thereof.
Regards,
J.L Samper
Originally posted by Samper-Esc on ROS Answers with karma: 50 on 2020-02-29
Post score: 1