Skip to content
프로젝트

소개

ROS package of helper functions related to bringing up roslaunch on system startup.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

robot_upstart robot_upstart_ci

robot_upstart provides a suite of scripts and a Python API to install and uninstall Linux startup jobs that launch groups of ROS 2 launch files when a machine boots. It detects the available init system and creates a systemd service (default) or an upstart job for your robot, so your bringup starts automatically and can be managed like any other system service.

Installation

From the ROS 2 apt repository (recommended):

sudo apt install ros-$ROS_DISTRO-robot-upstart

From source, in a colcon workspace:

cd ~/ros2_ws/src
git clone https://github.com/clearpathrobotics/robot_upstart.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
source install/setup.bash

Usage

Create a startup job from one or more launch files. The following creates a job named myrobot (derived from the package name) that launches base.launch.py:

ros2 run robot_upstart install myrobot_bringup/launch/base.launch.py

The job starts automatically on the next boot. With systemd (the default) you can also manage it manually:

sudo systemctl start myrobot
sudo systemctl stop myrobot

To inspect the job output:

sudo journalctl -u myrobot

To remove a previously installed job:

ros2 run robot_upstart uninstall myrobot

Common options for install include --job (job name), --rmw (RMW implementation), --ros_domain_id, --user, --setup (workspace setup file), and --rosdistro. Run ros2 run robot_upstart install --help for the full list.

Python API

Jobs can also be created programmatically:

import robot_upstart

j = robot_upstart.Job(name="myrobot", rosdistro="jazzy")
j.add(package="myrobot_bringup", filename="launch/base.launch.py")
j.install()

Documentation

Additional documentation is maintained in the doc/ directory of this repository.

Contributing

See CONTRIBUTING.md for development setup, linting, and pull request guidelines.

License

robot_upstart is released under the BSD license.

관련 프로젝트 살펴보기

불러오는 중…