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 — GitHub - DISCOWER/bsk-msgs: ROS 2 message definitions converted from the Basilisk astrodynamics framework, used by the BSK-ROS 2 Bridge.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
msg
msg
 
 
tools
tools
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.xml
package.xml
 
 

Repository files navigation

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.

About

ROS 2 message definitions converted from the Basilisk astrodynamics framework, used by the BSK-ROS 2 Bridge.

Topics

astrodynamicsbasiliskmessage-definitionsros2spacecraft-simulation

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.