ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
After you post params.yaml, I think there is a possibility this is caused by your putting the params in wrong namespace. For example in the launch file, you specify a node name “sub_node” but in yaml file, your specify as “sub_demo”. You need to match the names of nodes in yaml and launch files
2 | No.2 Revision |
After you post params.yaml, I think there is a possibility this is caused by your putting the params in wrong namespace. For example in the launch file, you specify a node name “sub_node” but in yaml file, your specify as “sub_demo”. You need to match the names of nodes in yaml and launch filesfiles.
Edit as reply to your comment;
sub_demo:
ros__parameters:
robot_name: "BOT02/"
here your telling that robot_name
parameter belongs to node with name sub_demo
, but in the launch file your saying
launch_ros.actions.Node(
executable='sub_ex',
package='demo_pkg',
name='sub_node',
parameters=[config]
),
the name of the node is sub_node
, they are not matching.