Registry / communication / py3rosmsgs

py3rosmsgs

JSON →
library1.18.2pypypiunverified

Port of ROS 1.0 messages to Python 3, providing pre-compiled message definitions for common ROS packages (std_msgs, geometry_msgs, sensor_msgs, etc.). Version 1.18.2 is current; release cadence is tied to ROS releases. The library is a Python 3 runtime dependency for ROS1 nodes when using Python 3, and includes generated Python classes from ROS message definitions.

pip install py3rosmsgs
INSTALL
IMPORT
SIG · PY3ROSMSGS
P
py3rosmsgs
communicationpythonv1.18.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Header
from std_msgs.msg import Header
from std_msgs.msg import Header

Basic usage: import common message types and create instances.

from std_msgs.msg import Header from geometry_msgs.msg import Pose, Point, Quaternion import genpy # Create a ROS message header = Header() header.stamp = genpy.Time.now() header.frame_id = 'map' pose = Pose() pose.position.x = 1.0 pose.position.y = 2.0 pose.position.z = 0.0 pose.orientation.x = 0.0 pose.orientation.y = 0.0 pose.orientation.z = 0.0 pose.orientation.w = 1.0 print('Header:', header) print('Pose:', pose)
Debug
Known issues
breakingpy3rosmsgs expects a specific ROS distribution; version mismatch can cause missing messages or incorrect field definitions. Ensure the installed version matches the ROS distribution (e.g., Melodic, Noetic).
fix
Install the version corresponding to your ROS distro. For ROS Noetic, use py3rosmsgs >= 1.18.0.
affects: all
gotchapy3rosmsgs only provides message definitions; you still need rospy and a full ROS environment to publish/subscribe. Importing messages without rospy will not enable communication.
fix
Install rospy (usually part of ROS desktop-full) and source your ROS setup.bash before running Python.
affects: all
deprecatedSome message fields may be deprecated in newer ROS versions; check ROS message documentation before relying on specific fields.
fix
Refer to ROS wiki for the message specification of your ROS distribution.
affects: >=1.18.0
Upgrade
Version history
1.18.2latest on PyPI · released Apr 26, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
py3rosmsgs — pip install py3rosmsgs · libregistry