Code Monkey home page Code Monkey logo

ros1_ros2_bridge's Introduction

ROS1_ROS2_bridge

Usage

build (Run only once at the beginning)

bash docker_tool/docker_build.sh

run docker image (Run only once)

bash docker_tool/docker_run.sh (config:ocnfig.yaml) (name:0)

ros1 to ros2

bash docker_tool/run_1to2.sh (name:0)

ros2 to ros1

bash docker_tool/run_2to1.sh (name:0)

Configuration

If you want to change the topic you want to bridge, change the config.yaml

rate: 0.1 #refresh rate cycle
ros1_to_ros2:
  - ros1_name: /chatter # ros1 topic name
    ros1_type: std_msgs/String # ros1 msg type 
    ros2_name: /chatter_ros2 # remap topic name
    ros2_type: std_msgs/msg/String # ros2 msg type 
~~~~~~

If you want to change ROS_MASTER_URI for ROS1 and ROS_DOMAIN_ID for ROS2, edit docker_tool/docker_run.sh

# ROS1 
ROS_IP=127.0.0.1
ROS_MASTER_URI=http://127.0.0.1:11311 #<-
#ROS2
ROS_DOMAIN_ID=1 #<-
ROS_LOCALHOST_ONLY=0
~~~~~

custom msg

When you use custom messages, put pkg in ros1_custom_msg,ros2_custom_msg and do bash docker_tool/docker_build.sh

ros1_ros2_bridge's People

Contributors

rennn-n 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.