Skip to content

C++ API implementation of ping-protocol

Notifications You must be signed in to change notification settings

bluerobotics/ping-cpp

Folders and files

NameName
Last commit message
Last commit date
Mar 14, 2023
Jan 29, 2021
Jan 27, 2025
Apr 24, 2025
Feb 24, 2025
Apr 8, 2020
Feb 10, 2022
Apr 20, 2020
Jan 29, 2021
Nov 12, 2024
May 24, 2021

Repository files navigation

ping-cpp

Travis Test Linux hardware test

C++ API implementation of ping-protocol.

This repository has the ping_message base class, and templates + scripts to automatically generate device-specific message subclasses.

Usage

Generated files

If you would like to use the C++ API in your project, checkout the deployment branch.

CMake project

The master branch can be used directly in CMake based projects for desktop or SBC applications.

Example
# Clone the repository
git clone https://github.com/bluerobotics/ping-cpp
cd ping-cpp
# Update the submodules
git submodule update --init --recursive
# Configure and build the project in debug mode
cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build --parallel --config Debug
# Connect a Ping device and use the correct USB as argument
./build/test-device --conn serial:/dev/ttyUSB0:115200
# If you have a Ping1D connected, you can run the test program for the device
./build/test-device-ping1d --conn serial:/dev/ttyUSB0:115200