ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

The <include> tag does not support the "ns" parameter

if you wrap the <include> in a <group> tag you can do what you want.

Example: <group ns="qbot1"> <include>....</include> </group>

It will put all the nodes inside the group under the given namespaces.

Hi,

The <include> tag does not support the "ns" parameter

if you wrap the <include> in a <group> tag you can do what you want.

Example: <group ns="qbot1"> <include>....</include> </group>

It will put all the nodes inside the group under the given namespaces.

EDIT: When creating the publisher subscriber are you setting the name as "/example_node" or "node", putting the "/" at the start of the node name will force it to the base namespace, if you omit the "/" the namespace will be correctly tagged onto the node

Hi,

if you wrap the <include> in a <group> tag you can do what you want.

Example: <group ns="qbot1"> <include>....</include> </group>

It will put all the nodes inside the group under the given namespaces.

EDIT: When creating the publisher subscriber are you setting the name as "/example_node" or "node", putting the "/" at the start of the node name will force it to the base namespace, if you omit the "/" the namespace will be correctly tagged onto the node

ns = "foo" with sub/pub topic = "/test_node" will always be /test_node ns ="foo" with "test_node" will correctly become "/foo/test_node"

Hi,

if you wrap the <include> in a <group> tag you can do what you want.

Example: <group ns="qbot1"> <include>....</include> </group>

It will put all the nodes inside the group under the given namespaces.

EDIT: When creating the publisher subscriber are you setting the name as "/example_node" or "node", putting the "/" at the start of the node name will force it to the base namespace, if you omit the "/" the namespace will be correctly tagged onto the node

ns = "foo" with sub/pub topic = "/test_node" will always be /test_node /test_node

ns ="foo" with "test_node" will correctly become "/foo/test_node"