当前位置:网站首页>ros启动非本机节点
ros启动非本机节点
2022-07-24 05:16:00 【lifei_0001】
1.搭建好节点主机
在非主机上设好ROS_MASTER_URI,保证每台设备都能访问ros Master。
2.设置远程脚本
#!/bin/bash
export ROSLAUNCH_SSH_UNKNOWN=1
export ROS_MASTER_URI=http://192.168.31.6:11311
source /opt/ros/kinetic/setup.bash
source ~/dashgo_ws/devel/setup.bash
export ROS_HOSTNAME=ros-smart
exec "[email protected]"
3.调用
<launch>
<machine name="ros-smart" user="eaibot" password="eaibot" address="ros-smart" env-loader="/home/eaibot/HRobot/env.sh"/>
<group ns="smart">
<node name="smart_driver" pkg="smart_node" type="smart_node" output="screen" respawn="true" machine="ros-smart" >
<rosparam file="$(find smart_node)/config/smart_parms_imu.yaml" command="load" />
</node>
</group>
<group ns="NX">
<include file="$(find ydlidar)/launch/ydlidar1_up.launch"/>
<include file="$(find dashgo_description)/launch/dashgo_description.launch"/>
<include file="$(find dashgo_nav)/launch/include/imu/gmapping_base.launch"/>
<include file="$(find dashgo_nav)/launch/include/imu/teb_move_base.launch"/>
<node name="robot_pose_publisher" pkg="robot_pose_publisher" type="robot_pose_publisher" />
<node name="robot_data" pkg="dashgo_tools" type="robot_data.py" respawn="true" />
<node name="scan_cloud" pkg="dashgo_tools" type="get_scan_data" respawn="true" />
</group>
</launch>边栏推荐
- Integration of SSM
- Jsp+dao integration
- C语言入门篇 二.函数
- scikit-learn笔记
- Text summary acl2021
- 1. Pedestrian recognition based on incremental occlusion generation and confrontation suppression
- Career planning route
- [Basic 6] - encapsulation and inheritance of classes, objects and classes
- [basic 8] - processes and threads
- The opening ceremony of the 2022 Huawei developer competition in China kicked off!
猜你喜欢

酒店IPTV数字电视系统解决方案

1、基于增量式生成遮挡与对抗抑制的行人再识别

C语言从入门到入土——函数

C语言从入门到入土——操作符超详细总结

Beginners' preparation for the Blue Bridge Cup (University Programming learning history records, topic ideas for students who need to prepare for the Blue Bridge Cup)
![Embedded system transplantation [3] - uboot burning and use](/img/36/69daec5f1fe41bd3d0433d60816bba.png)
Embedded system transplantation [3] - uboot burning and use

使用d2l包和相关环境配置的一些血泪心得

OSS文件上传

C语言从入门到入土(一)

【sklearn】tree.DecisionTreeClassifier
随机推荐
Basic knowledge of MySQL database
Introduction to 51 single chip microcomputer (dedicated to the most understandable article for beginners)
Skills of BeanShell dealing with JSON
FTP file transfer protocol
MySQL深入了解
Pointer learning diary (IV) use structure and pointer (linked list)
MySQL连接
用双向链表实现栈(C)
C语言入门篇 三.数组 四.操作符
线程
Read "effective managers - Drucker"
PPPoE网关模拟环境搭建
文本摘要 ACL2021
web开发
csgo部分常用服务器指令与一些绑定指令整理
Embedded system transplantation [3] - uboot burning and use
Tips for using the built-in variable props of BeanShell
How can NFT, whose stars enter the market against the market, get out of the independent market?
C语言进阶篇 一.数据的存储
CentOS 7安装Mysql5.6.37