当前位置:网站首页>远端rostopic的本地rviz调用及显示
远端rostopic的本地rviz调用及显示
2022-07-03 06:18:00 【昼行plus】
假设
机器人的IP: 192.168.0.11 // remote computer (robot)
本地PC的IP: 192.168.0.111 // local computer Ubuntu (host)
查看IP地址的方法: 参考1,参考2
本地PC通过ssh链接远端机器人,如利用Mobaxterm或VSCode
在远端的命令行终端内输入如下命令:
export ROS_MASTER_URI=http://192.168.0.11:11311 //this ensures that we do not use localhost, but the real IP address as master node
export ROS_IP=192.168.0.11 //this ensures that ROS knows that we cannot use hostname directly (due to DHCP firewall issues)
然后
roscore
远端插上usb摄像头,参考ROS调用USB双目摄像头模组调用usb_cam,跑通后会有如下一堆topic:
然后打开本地PC的终端,输入如下命令:
export ROS_MASTER_URI=http://192.168.0.11:11311 //tells local computer to look for the remote here
export ROS_IP=192.168.0.111 //this ensures that ROS knows that we cannot use hostname directly (due to DHCP firewall issues)
“11311”代表啥目前我还不清除…… 知道的大佬感谢您在评论区告诉我!
然后
rosrun rviz rviz // fires up rviz on local computer. It will attach to the master node of the remote computer

使用上面export的方式每次打开一个终端都要输入一遍。
如果用的比较多,为了方便,也可以直接修改环境变量:
sudo gedit ~/.bashrc //add the two export commands at the end of the file.
source ~/.bashrc //and restart terminal
但是记得不需要的时候去掉上面export的命令!
Reference
ROS之旅(六)远端rviz监控
rviz远程桌面启动问题解决,多机器分布式本地运行rviz
Ubuntu查看IP地址
ubuntu查看ip地址命令(如何在 Ubuntu 中检查你的 IP 地址)
边栏推荐
- PHP用ENV获取文件参数的时候拿到的是字符串
- ThreadLocal的简单理解
- Difference between shortest path and minimum spanning tree
- Common interview questions
- tabbar的设置
- Judge whether the date time exceeds 31 days
- MySQL帶二進制的庫錶導出導入
- Interesting research on mouse pointer interaction
- Docker advanced learning (container data volume, MySQL installation, dockerfile)
- [set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)
猜你喜欢

Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)

Selenium ide installation recording and local project maintenance

Push box games C #

Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)

项目总结--2(Jsoup的基本使用)

In depth analysis of kubernetes controller runtime

tabbar的设置

Kubesphere - set up redis cluster

Synthetic keyword and NBAC mechanism

Cesium 点击获三维坐标(经纬度高程)
随机推荐
有意思的鼠标指针交互探究
Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样
ODL framework project construction trial -demo
代码管理工具
Cesium 点击获三维坐标(经纬度高程)
Reinstalling the system displays "setup is applying system settings" stationary
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Tabbar settings
Various usages of MySQL backup database to create table select and how many days are left
BeanDefinitionRegistryPostProcessor
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
Leetcode problem solving summary, constantly updating!
Use selenium to climb the annual box office of Yien
Cesium Click to obtain the longitude and latitude elevation coordinates (3D coordinates) of the model surface
Simple solution of small up main lottery in station B
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
Kubernetes notes (II) pod usage notes
Oauth2.0 - Introduction and use and explanation of authorization code mode
Oauth2.0 - explanation of simplified mode, password mode and client mode
Jedis source code analysis (I): jedis introduction, jedis module source code analysis