当前位置:网站首页>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>边栏推荐
- [basic 7] - exceptions, capture and customize exceptions
- Embedded system transplantation [3] - uboot burning and use
- This is the first article
- 使用swagger2markup生成API文档
- 泛型和注解
- Knowledge record of College Physics C in advance in summer [update]
- MySQL深入了解
- Generator generator, which generates only two methods
- C语言从入门到入土——数组
- Source code compilation!!
猜你喜欢

Echo speaker pairing and operation method

A collation of the basic usage of numpy

T 11-20
![Embedded system transplantation [2] - Construction of cross development environment](/img/96/8d209c04e41675fc0efaa872c35615.png)
Embedded system transplantation [2] - Construction of cross development environment

栈与队列的互相实现(C)

JDBC encapsulates a parent class to reduce code duplication
![Knowledge record of College Physics C in advance in summer [update]](/img/c4/76b669c3229a365a5e2567f7fb824e.png)
Knowledge record of College Physics C in advance in summer [update]

T 1-5

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

1、基于增量式生成遮挡与对抗抑制的行人再识别
随机推荐
Generics and annotations
递归还能这么玩?递归实现扫雷游戏
【【【递归】】】
String的字符串常量池和intern()详解
C语言进阶篇 二. 指针
这是第一篇
Basic knowledge of MySQL database
ZY: modify host name
T 6-10
Relationship between sample and population in Statistics: sample success ratio + central limit theorem (sample mean)
web开发
1. Pedestrian recognition based on incremental occlusion generation and confrontation suppression
generator生成器,只生成两个方法
FTP file transfer protocol
【dp】数字三角形
JDBC encapsulates a parent class to reduce code duplication
T 1-5
ssm的整合
[database connection] - excerpt from training
使用swagger2markup生成API文档