IMPORTANT: This repo has been replaced by the ntrip_client-release repo in the ros2-gbp repo.
ROS node that will communicate with an NTRP server to receive RTCM connections and publish them on a ROS topic. Also works with virtual NTRIP servers by subscribing to NMEA messages and sending them to the NTRIP server
There are two important branches that you may want to checkout:
- ros -- Contains ROS1 implementation for this node.
- ros2 -- Contains ROS2 implementation for this node.
-
Install ROS2 and create a workspace: Installing and Configuring Your ROS2 Environment
-
Move the entire ntrip_client folder to the your_workspace/src directory.
-
Install rosdeps for this package:
rosdep install --from-paths ~/your_workspace/src --ignore-src -r -y
-
Build your workspace:
cd ~/your_workspace colcon build source ~/your_workspace/install/setup.bash
The source command may need to be run in each terminal prior to launching a ROS node.
The following command will launch the node. Keep in mind each instance needs to be run in a separate terminal.
ros2 launch ntrip_client ntrip_client_launch.py
Optional launch parameters:
- host: Hostname or IP address of the NTRIP server to connect to and receive corrections from
- port: Port to connect to on the server. Default:
2101
- mountpoint: Mountpoint to connect to on the NTRIP server
- authenticate: Whether or not to authenticate with the server, or send an unauthenticated request. If set to true,
username
, andpassword
must be supplied. - username: Username to use when authenticating with the NTRIP server. Only used if
authenticate
is true - password: Password to use when authenticating with the NTRIP server. Only used if
authenticate
is true
This node currently only has two topics of interest:
- /rtcm: This node will publish the RTCM corrections received from the server to this topic as RTCM messages. These messages can be consumed by nodes such as the microstrain_inertial_driver
- /nmea: This node will subscribe on this topic and receive NMEA sentence messages which it will forward to the NTRIP server. This is only needed when using a virtual NTRIP server
The easiest way to use docker while still using an IDE is to use VSCode as an IDE. Follow the steps below to develop on this repo in a docker container
- Install the following dependencies:
- Open VSCode and install the following plugins:
- Open this directory in a container by following this guide
If you are comfortable working from the command line, the Makefile in the .devcontainer directory
can be used to build a development image, and run a shell inside the docker image. Follow the steps below to setup your environment to use the Makefile
- Install the following dependencies:
- Make
- Docker
- qemu-user-static (for multiarch builds)
- Run the following command to register the qemu binaries with docker:
docker run --rm --privileged multiarch/qemu-user-static:register
- Run the following command to register the qemu binaries with docker:
The Makefile
exposes the following tasks. They can all be run from the .devcontainer
directory:
make build-shell
- Builds the docker image and starts a shell session in the image allowing the user to develop and build the ROS project using common commands such ascatkin_make
make clean
- Cleans up after the above two tasks
ntrip_client is released under the MIT License - see the LICENSE
file in the source distribution.
Copyright (c) 2021, Parker Hannifin Corp.