How to import all of the ROS messages from a remote machine to your machine (for visualization, for example).
Step-by-step guide
- Sometimes, you can't have a direct connection to the machine running the ROS Master you need access to...
- You could ssh into it, and see nothing OR
- You can export the ROS Master to your Machine.
- You can do this in three easy steps. (Or, you can write an alias for it! More on that later).
To Export the ROS Master to your local machine:
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
|
$ export ROS_MASTER_URI=http://<ip of machine running ROS Master>:11311
$ export ROS_IP=<ip of machine running ROS Master>
$ source ~/.bashrc |
If you want to write an alias, do the following on your local machine
Code Block |
---|
$ sudo nano ~/.bash_aliases
# at the bottom of the .bash_aliases file, append the following
alias <name of macnine running ROS Master>='export ROS_MASTER_URI=http://<ip of machine running ROS Master>:11311 && export ROS_IP=<ip of machine running ROS Master>'
# REMEMBER: you MUST update the IP of the machine running the ROS Master in this alias each time it changes (about once per day) |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | TAR |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("linux","ros","jetson") and type = "page" and space = "TAR" |
---|
labels | jetson linux ros |
---|
|
...