ROS节点开机自启动

ROS节点开机自启动(robot_upstart方法)

  • 从 gitlab 下载 robot_upstart 并编译

  • 将需要启动的所有ROS节点集中写到一个launch文件

    <launch>
    
      <!-- base -->
      <include file="$(find myntbot_bringup)/launch/minimal_with_tf.launch"/>
    
      <!-- bumper to marker -->
      <include file="$(find bumper_to_marker)/launch/path_marker.launch"/> 
    
    </launch>
    
  • 装载该launch 文件

    rosrun robot_upstart install  _bringup/launch/upStart.launch --job _upStart --interface wlan0 --logdir ~/.ros/log/upstart
    
  • /lib/systemd/systemd
    Preparing to install files to the following paths:
      /etc/ros/kinetic/dolphin_upStart.d/.installed_files
      /etc/ros/kinetic/dolphin_upStart.d/upStart.launch
      /etc/systemd/system/multi-user.target.wants/dolphin_upStart.service
      /lib/systemd/system/dolphin_upStart.service
      /usr/sbin/dolphin_upStart-start
      /usr/sbin/dolphin_upStart-stop
    Now calling: /usr/bin/sudo /home/mynt/dolphin/src/robot_upstart/scripts/mutate_files
    [sudo] password for mynt: 
    Filesystem operation succeeded.
    ** To complete installation please run the following command:
     sudo systemctl daemon-reload && sudo systemctl start dolphin_upStart
    
  • 注意安装 daemon tools

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值