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

一步一步带你学C(其一)
![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]

OSS file upload

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

Chapter5 foundation of deep learning

View progress!!! RPM installation!!!

Reading excerpts from Liu run's "bottom logic"

C语言进阶篇 三.字符串函数和内存操作函数

PPPoE gateway simulation environment setup

Theoretical basis of machine learning
随机推荐
C语言实现扫雷游戏
scikit-learn笔记
Implementation and comparison of nine sorting (ten thousand words summary)
模拟加法 & 结构体基本用法
九大排序实现与比较(万字总结)
BeanShell built-in variable CTX
c2-随机产生函数种子seed、numpy.random.seed()、tf.random.set_seed学习+转载整理
What are the core strengths of a knowledge base that supports customers quickly?
T 1-5
SSH service
Industry relevance of stock price trend
求网络的flops
T 1-5
MySQL connection
DHCP principle and configuration
The fourth job: about the usage of cat, grep, cut, sort, uniq, VIM, TR and other commands
ZY: modify host name
1. Pedestrian recognition based on incremental occlusion generation and confrontation suppression
Sorting out some common server instructions and some binding instructions in csgo
一步一步带你学C(其一)