This is a template: replace, remove, and add where required. Describe here what this package does and what it's meant for in a few sentences.
Keywords: example, package, template
Or, add some keywords to the Bitbucket or GitHub repository.
The source code is released under a BSD 3-Clause license.
Author: Péter Fankhauser
Affiliation: ANYbotics
Maintainer: Péter Fankhauser, pfankhauser@anybotics.com
The PACKAGE NAME package has been tested under ROS Indigo, Melodic and Noetic on respectively Ubuntu 14.04, 18.04 and 20.04. This is research code, expect that it changes often and any fitness for a particular purpose is disclaimed.
To install all packages from the this repository as Debian packages use
sudo apt-get install ros-noetic-...
Or better, use rosdep
:
sudo rosdep install --from-paths src
-
Robot Operating System (ROS) (middleware for robotics),
-
Eigen (linear algebra library)
sudo rosdep install --from-paths src
To build from source, clone the latest version from this repository into your catkin workspace and compile the package using
cd catkin_workspace/src
git clone https://github.com/ethz-asl/ros_best_practices.git
cd ../
rosdep install --from-paths . --ignore-src
catkin_make
Docker is a great way to run an application with all dependencies and libraries bundles together. Make sure to install Docker first.
First, spin up a simple container:
docker run -ti --rm --name ros-container ros:noetic bash
This downloads the ros:noetic
image from the Docker Hub, indicates that it requires an interactive terminal (-t, -i
)
, gives it a name (--name
), removes it after you exit the container (--rm
) and runs a command (bash
).
Now, create a catkin workspace, clone the package, build it, done!
apt-get update && apt-get install -y git
mkdir -p /ws/src && cd /ws/src
git clone https://github.com/leggedrobotics/ros_best_practices.git
cd ..
rosdep install --from-path src
catkin_make
source devel/setup.bash
roslaunch ros_package_template ros_package_template.launch
Run the unit tests with
catkin_make run_tests_ros_package_template
Run the static code analysis with
catkin_make roslint_ros_package_template
Describe the quickest way to run this software, for example:
Run the main node with
roslaunch ros_package_template ros_package_template.launch
Config file folder/set 1
- config_file_1.yaml Shortly explain the content of this config file
Config file folder/set 2
- ...
-
launch_file_1.launch: shortly explain what is launched (e.g standard simulation, simulation with gdb,...)
Argument set 1
argument_1
Short description (e.g. as commented in launch file). Default:default_value
.
Argument set 2
...
-
...
Reads temperature measurements and computed the average.
-
/temperature
(sensor_msgs/Temperature)The temperature measurements from which the average is computed.
...
-
get_average
(std_srvs/Trigger)Returns information about the current average. For example, you can trigger the computation from the console with
rosservice call /ros_package_template/get_average
-
subscriber_topic
(string, default: "/temperature")The name of the input topic.
-
cache_size
(int, default: 200, min: 0, max: 1000)The size of the cache.
...
Please report bugs and request features using the Issue Tracker .