当前位置:网站首页>远端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 地址)
边栏推荐
- Kubernetes notes (VII) kuberetes scheduling
- 认识弹性盒子flex
- Core principles and source code analysis of disruptor
- IE browser flash back, automatically open edge browser
- Virtual memory technology sharing
- Use @data in Lombok to simplify entity class code
- Oauth2.0 - using JWT to replace token and JWT content enhancement
- PMP笔记记录
- The most classic 100 sentences in the world famous works
- Support vector machine for machine learning
猜你喜欢
Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
Kubesphere - build MySQL master-slave replication structure
Method of converting GPS coordinates to Baidu map coordinates
YOLOV1学习笔记
智牛股项目--05
从小数据量分库分表 MySQL 合并迁移数据到 TiDB
Kubernetes notes (VII) kuberetes scheduling
Mysql
YOLOV3学习笔记
随机推荐
Print time Hahahahahaha
The win7 computer can't start. Turn the CPU fan and stop it
Difference between shortest path and minimum spanning tree
MySQL帶二進制的庫錶導出導入
ODL framework project construction trial -demo
Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
Kubesphere - Multi tenant management
Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
The most responsible command line beautification tutorial
Mysql
MySQL带二进制的库表导出导入
Kubernetes notes (II) pod usage notes
Kubernetes notes (IX) kubernetes application encapsulation and expansion
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
YOLOV1学习笔记
[system design] proximity service
Openresty best practices
Characteristics and isolation level of database
Svn branch management
phpstudy设置项目可以由局域网的其他电脑可以访问