forge-msgs
Forge message definitions for Dora dataflow.
The canonical cross-language contract starts at
interfaces/forge_msgs/forge_msgs.v1.yaml. That manifest references the
versioned domain schemas that Python, Rust, and future C++ implementations
should follow.
Core Messages
JointState
Robot or simulator joint observation payload.
name: list[str]position: list[float]velocity: list[float]effort: list[float]
name must be non-empty and unique. Numeric lists must either be empty or have the same length as name.
JointCommand
Command payload for robot drivers and controllers.
name: list[str]mode: "position" | "velocity" | "effort" | "hybrid"position: list[float]velocity: list[float]effort: list[float]kp: list[float]kd: list[float]
mode describes the command semantics. position, velocity, and effort match the common ROS2 command interfaces; hybrid is for low-level position/velocity/effort commands with optional kp/kd gains. Payloads written before mode existed are read as mode="position".
name is a sparse update set: consumers update only the listed joints. Omitted joints retain their previous command target and must never be reset or filled with zero implicitly. Disjoint arm and gripper controllers can therefore share an ordered command stream without constructing a complete joint vector.
For Unitree-style low-level control, map position -> q, velocity -> dq, effort -> tau, kp -> kp, and kd -> kd.
LocomotionCommand
Planar body-frame locomotion velocity command for ground robots.
vx: floatvy: floatwz: float
vx and vy are body-frame linear velocities in m/s, with positive X forward and positive Y left. wz is angular velocity about the body-frame Z axis in rad/s, positive counter-clockwise, corresponding to ROS2 Twist.angular.z / yaw rate. Stop is represented by all zeros. This message intentionally omits mode, duration, gait, body_height, timestamp/frame fields, and full 6D Twist fields.
Image
Uncompressed image payload.
height: intwidth: intencoding: strstep: intdata: bytes
Supported encodings are rgb8, bgr8, mono8, 8UC1, 16UC1, 32SC1,
and 32FC1. Multi-byte pixels are little-endian. 8UC1 is available for
generic one-channel byte data such as label maps, while 32SC1 supports signed
32-bit label images. Compressed images use CompressedImage.
CompressedImage
Compressed image bitstream payload.
format: strdata: bytes
Recommended formats are jpeg, png, and webp.
TeleopObservation
XR device raw teleop observation for embodiment-specific teleop policies.
device: list[str]: XR source ids; recommended ids areleft,right, andheadset. Match entries by id rather than list order.x/y/z: list[float]: positions in meters in the producer-configured XR tracking frame.qx/qy/qz/qw: list[float]: quaternion components inxyzworder.confidence: list[float]: finite producer-defined confidence values in[0, 1]; zero means that the aligned pose must not be used for control.buttons_json: str: JSON object of digital boolean and analog finite-number values keyed by button id.axes_json: str: JSON object of finite numbers or numeric arrays keyed by axis or documented derived-control id.
Recommended button ids include A, B, X, Y, the left_/right_
trigger and grip ids, and the joystick-click ids. left_axis and right_axis
are [x, y] joystick pairs. An unavailable pose may use zero position and an
identity quaternion with confidence 0.
The payload does not carry the tracking-frame origin, handedness, axis directions, or timestamp. Document the frame convention in producer configuration and carry timing in Dora event context or an adapter layer.
Text
Single UTF-8 text payload for ASR transcripts, LLM responses, TTS input, and other text streams.
text: str
Producers should omit empty outputs when there is no meaningful text.
Perception result sets
The perception messages use parallel Arrow list columns in a single-row
RecordBatch:
Detection2DSetstores oriented pixel-space boxes and flattened class hypotheses. Axis-aligned boxes userotation=0, and high-level constructors may fill that default automatically.Detection3DSetstores oriented metric boxes and flattened class hypotheses. Axis-aligned boxes use identity orientation (qx=0,qy=0,qz=0,qw=1), and high-level constructors may fill that default automatically.SegmentationMaskSetstores croppedmono8instance masks and their source image offsets. Standalone masks can omit detection and track associations, and high-level constructors may fill empty associations and zero offsets.
Detection class names and model label maps belong in node configuration.
class_id is the stable identifier carried on the wire.
Local features such as ORB, SIFT, or SuperPoint descriptors are intentionally
kept out of the core streaming schema; publish higher-level outputs unless a
future pipeline needs cross-node feature reuse.
PointCloud
PointCloud stores common XYZ point clouds as Arrow lists with optional
intensity and RGB columns. Organized clouds preserve width and height;
unorganized clouds use height=1. Coordinates use meters, while the coordinate
frame is supplied by Dora metadata or node configuration. High-level
constructors may infer unorganized clouds from x/y/z by setting height=1,
width=len(x), and is_dense from finite XYZ values.
Motion Messages
The motion API provides single-row Arrow payloads for joint trajectories and configured-group motion actions:
JointTrajectoryPoint,JointTrajectory, andJointToleranceFollowJointTrajectoryGoal,FollowJointTrajectoryFeedback, andFollowJointTrajectoryResultGripperCommandGoal,GripperCommandFeedback, andGripperCommandResultMoveJointsGoal,MoveJointsFeedback, andMoveJointsResultMovePoseGoal,MovePoseFeedback, andMovePoseResult
Trajectory points and tolerances are encoded as nested Arrow structs, including
list<struct> trajectory and tolerance fields. MovePose* messages reuse
Pose as a nested struct. Optional scalar and pose fields are represented by
Arrow nulls rather than sentinel values.
GripperCommand addresses the coordinate configured for its controller endpoint;
it does not carry joint_name or a dynamic unit. Prismatic coordinates use meters,
meters/s, and Newtons. Revolute or rotary actuator coordinates use radians,
radians/s, and Newton-meters. Explicit velocity or effort limits remain nullable so
a position-only backend can reject unsupported requested limits rather than silently
ignore them.
goal_id and goal_status are Dora action metadata and are intentionally not
included in payload columns. Domain result codes are separate from Dora's
lowercase terminal goal_status values.
Arrow Format
All core messages encode to a single-row pyarrow.RecordBatch.
from forge_msgs import JointCommand, JointState
state = JointState(
name=["joint1", "joint2"],
position=[0.1, 0.2],
velocity=[0.0, 0.0],
effort=[],
)
batch = state.to_arrow()
back = JointState.from_arrow(batch)
command = JointCommand.from_np(
values=[0.3, 0.4],
order=["joint1", "joint2"],
field="position",
)
Timing and frame data are intentionally not part of the core schema. Carry them in Dora event context, topic naming, node configuration, or adapter layers.
Metadata
Release files for forge-msgs 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forge_msgs-1.0.1.tar.gz | 24.5 kB | Without provenance | Details for forge_msgs-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forge_msgs-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for forge_msgs-1.0.1-py3-none-any.whl |
Total release size: 57.9 kB
Release files / forge_msgs-1.0.1.tar.gz
| Download URL | forge_msgs-1.0.1.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b0421ad898a855d4f36ef1bda7c253e4c25cbf292919cc0ed2074572746bac
|
|
BLAKE2b-256 checksum How to use checksums |
1411d80e481d07bd307dae709221090c0e6019f1a3d31b4e65babc23d8a5205b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / forge_msgs-1.0.1-py3-none-any.whl
| Download URL | forge_msgs-1.0.1-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3d01d576824a2c3944bb8117d1ff464c4a2f42c7395e8621f808800c2d2643d
|
|
BLAKE2b-256 checksum How to use checksums |
9279f8ff3d369e0ac35ce1c01d0b46df695e5483a0c4e1fe2b6ac5ef3ffc8b86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for forge-msgs 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.