当前位置:网站首页>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>边栏推荐
猜你喜欢

c2-随机产生函数种子seed、numpy.random.seed()、tf.random.set_seed学习+转载整理

A collation of the basic usage of numpy

scikit-learn笔记

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

Data annotation learning summary

Handwritten ORM framework

Chapter5 foundation of deep learning

C语言起步
![[deep learning] (III) image classification](/img/8a/86b8ec6951f112f47be816378ab7d8.png)
[deep learning] (III) image classification

DHCP principle and configuration
随机推荐
c2-随机产生函数种子seed、numpy.random.seed()、tf.random.set_seed学习+转载整理
线程的介绍
C#表格数据去重
T 11-20
MySQL连接
[database connection] - excerpt from training
Solutions to MySQL remote connection errors
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)
ssm的整合
CentOS 7安装Mysql5.6.37
Machine vision learning summary
Echo speaker pairing and operation method
修改jupyter保存路径
Career planning route
反射的介绍
Embedded system transplantation [3] - uboot burning and use
【Pytorch】conv2d torchvision.transforms
OSS文件上传
web开发
Introduction to threads