multi-robot-infrastructure.md
How to namespace multiple robots and have them on the same roscore
Set namespace on robots' onboard computers with environment variable
nano ~/.bashrcexport ROS_NAMESPACE={namespace_you_choose}alias bu='roslaunch turtlebot3_bringup turtlebot3_robot.launch'
export IP="$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')"
export ROS_IP=$IP
export ROS_MASTER_URI=http://roscore1.cs.brandeis.edu:11311
export ROS_NAMESPACE=roba
export TB3_MODEL=burger
export TURTLEBOT3_MODEL=burgerSet namespace on your laptop with environment variable
Permanently associate your laptop with the name space
Use an environment variable
Use the .launch file
Not recommended: add __ns to the run or launch command
Publishing/Subsribing topics in other namespace
Make changes to turtlebot3_navigation package on your laptop
Change move base arguments
Change rviz arguments
Last updated
Was this helpful?
