Giter VIP home page Giter VIP logo

gps_ros_bridge's Introduction

Then ROS bridge for GPS stuff

Overview

This package contains package in a Dockerfile and devcontainer to build out the messages to link that ROS1 messages of the GPS to ROS2. This package was build using information from:

  1. custom messages example

  2. mapping

  3. weird time thing

  4. TYPE Error

HOW THE MAPPING WORKS

There are several components to making the BRIDGE work:

  1. a ROS1 message
  2. a matching ROS2 message
  3. a yaml malling file (see bridge_mapping_rules.yaml)
  4. building the bridge from source

All of these are needed to make the bridges work.

BUILDING

The order of building is VERY important. If the packags are built out of order then it will not work. The packages MUST be built in the following order, if the packags are built out of order then the messages will not be passed from ROS1 to ROS2.

STEP 1

In TERMINAL 1

cd catkine_ws
source /opt/ros/noetic/setup.bash
catkin_make_isolated --install

In TERMINAL 2

cd ros2ws
source /opt/ros/foxy/setup.bash
colcon build --symlink-install --packages-skip ros1_bridge
source install/setup.bash
ros2 interface list

ENSURE THAT YOU CAN SEE

gps_reader2/msg/LoggerBox

In TERMINAL 3

cd ros2ws
source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash
source  ../catkin_ws/devel/setup.bash
source install/setup.bash
ros2 interface list

ENSURE THAT YOU CAN SEE

gps_reader2/msg/LoggerBox
colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure
ros2 run ros1_bridge dynamic_bridge --print-pairs | grep gps

ENSURE THAT YOU CAN SEE

  - 'gps_reader2/msg/LoggerBox' (ROS 2) <=> 'gps_reader/LoggerBox' (ROS 1)

If you are are here then everything is good, at least the files are build correctly.

Additionaly, You will need to have a ROS2 node subscribed to any topics that you are bridging. so if you have a ROS1 node called GPS1/gps then you MUST have a ROS2 node that subscribs to GPS1/gps

gps_ros_bridge's People

Contributors

nag92 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.