GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bsk-msgs/README.md at main · DISCOWER/bsk-msgs

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (30 loc) · 2.06 KB
/

README.md

Copy path

File metadata and controls

46 lines (30 loc) · 2.06 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Basilisk-ROS 2 Messages

ROS 2 message definitions automatically converted from the Basilisk astrodynamics framework C/C++ message definitions.

This package provides the ROS 2 message interface used by the Basilisk-ROS 2 Bridge to enable communication between Basilisk and ROS 2 nodes. It includes a conversion tool that can be re-run to update message definitions as Basilisk evolves.

Install

cd your_ros2_workspace/src
git clone https://github.com/DISCOWER/bsk-msgs.git
cd ..
colcon build --packages-select bsk-msgs
source install/setup.bash

Usage

Once built and sourced, import the message types in your ROS 2 nodes:

Example:

from bsk_msgs.msg import CmdForceBodyMsgPayload, CmdTorqueBodyMsgPayload, SCStatesMsgPayload

All converted messages should include a builtin_interfaces/Time stamp field for ROS 2 compatibility, along with the original Basilisk fields and preserved documentation comments.

Message Conversion Tool

The conversion tool regenerates the ROS 2 .msg files from the JSON payload metadata that Basilisk writes to dist3/autoSource/cMsgMeta/ during its build. It handles C/C++ to ROS 2 type mapping (including enums, std::vector, std::string and Eigen types), array sizes and nested payload structs, and comment preservation from the original headers. Multi-dimensional arrays are flattened in row-major order.

export BSK_PATH=<your-basilisk-path>
python3 tools/bsk_json_message_converter.py

References

  • Basilisk Astrodynamics Simulation
  • ROS 2 Documentation
  • Basilisk-ROS 2 Bridge

Legacy Converter

tools/bsk_message_converter.py is the previous converter, which parses the Basilisk headers directly. It works without a Basilisk build or with Basilisk versions that predate the JSON metadata, but skips fields it cannot parse, such as enums, multi-dimensional arrays and arrays sized by macro expressions.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.