Giter VIP home page Giter VIP logo

launch_utils's Introduction

launch_utils

ROS2 pkg with utils functions to use ros2 launch pkgs

Description

The functions of this pkg is to avoid duplicate code and long code syntax that comes with ROS2 launch system and setup.py file. To use the launch_utils pkg you just have to use this name folders structure in your ROS2 packages:

config: folder for yours .yaml files configurations.
launch: Folder for yours launch files writed in .launch.py format file.
<pkg-name>: Folder for yours python nodes.
urdf: Folder for yours xacro, URDF and 3D mesh components files.
rviz: Folder for yours rviz configs files.

This format can be changed by parameters to meet your needs, check the source code in the scripts in launch_utils folder and the examples to learn how to use it.

Dependencies

Install and Compile

cd <your_ros2_ws>/src/
git clone https://github.com/MonkyDCristian/launch_utils.git
cd ..
colcon build --packages-select launch_utils

Install dependencies

cd ~/caleuche_ws
rosdep install -i --from-path src --rosdistro humble -y

Documentation

The utils functions are contained in launch_utils/utils.py, check the files setup.py, example.launch.py and example2.launch.py to learn how to use it.

for your setup.py:

from launch_utils.utils import add_data_files, add_entry_points

for yours launch files .launch.py:

from launch_utils.utils import include_launch, get_path

from launch_utils.utils import launch_rviz_node
from launch_utils.utils import launch_robot_state_publisher_node
from launch_utils.utils import launch_joint_state_publisher_node
from launch_utils.utils import launch_static_tf_node

Demo:

Launch example: include_launch and get_path

ros2 launch launch_utils example.launch.py

Launch example2: robot_state_publisher and joint_state_publisher

ros2 launch launch_utils example2.launch.py

Launch example3: launch_static_tf_node

ros2 launch launch_utils example3.launch.py

References

launch_utils's People

Contributors

monkydcristian avatar octavioaguila avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.