Coder Social home page Coder Social logo

bohemianrhapsodyz / ros2-launch-file-migrator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-robotics/ros2-launch-file-migrator

0.0 0.0 0.0 34 KB

This package takes a ROS1 XML launch file and converts it to a ROS2 Python launch file

License: Apache License 2.0

Python 100.00%

ros2-launch-file-migrator's Introduction

ROS2 Launch File Migrator

This package takes a ROS1 XML launch file and converts it to a ROS2 Python launch file

Requirements

  • Python 3.6+

Installation

pip3 install -e ./ --user

Usage

As a standalone script:

migrate_launch_file path/to/launch_file.launch

In another script

from ros2_launch_file_migrator import LaunchFileMigrator
converted_code =  LaunchFileMigrator.migrate(existing_launch_file_code)

Test

python3 -m pytest

Supported Tags

  • <node>
  • <arg>
  • <param>
  • <include>
  • <group>
  • <rosparam> - Basic config file loading is supported. Custom namespaces are not supported.

Unsupported Tags

You can still convert a launch file with unsupported tags, they will just be skipped.

  • <remap>

Known Issues

  • In ROS2 you there is a bug where you cannot set the output parameter of a node via an argument (see ros2/launch_ros#46). This is possible in ROS1 so this launch file converter will faithfully convert your launch file correctly but it won't work until the bug is fixed.

License

This library is licensed under the Apache 2.0 License.

Author: AWS RoboMaker Affiliation: Amazon Web Services (AWS) Maintainer: AWS RoboMaker, [email protected]

ros2-launch-file-migrator's People

Contributors

timrobotson avatar jamesiri avatar millerluki 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.