ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Have a look at this tutorial.
You could also use:
export ROS_NAMESPACE=/ajsim
rosrun turtlesim turtle_teleop_key
This would run the teleop node under the ajsim
namespace, and would allow you to subscribe to the topic.
2 | No.2 Revision |
Have a look at this tutorial.
You could also use:
export ROS_NAMESPACE=/ajsim
rosrun turtlesim turtle_teleop_key
This would run the teleop node under the ajsim
namespace, and would allow you to subscribe to the topic.
EDIT:
I do not know of a way to change a node's namespace while it's running. If you don't want to use the ROS_NAMESPACE variable, then you would want to use roslaunch.