diff --git a/dimos/msgs/geometry_msgs/Pose.py b/dimos/msgs/geometry_msgs/Pose.py index eb1e879709..d0cbe4511f 100644 --- a/dimos/msgs/geometry_msgs/Pose.py +++ b/dimos/msgs/geometry_msgs/Pose.py @@ -36,7 +36,7 @@ class Pose(LCMPose): position: Vector3 orientation: Quaternion - name = "geometry_msgs.Pose" + msg_name = "geometry_msgs.Pose" @classmethod def lcm_decode(cls, data: bytes | BinaryIO): diff --git a/dimos/msgs/geometry_msgs/PoseStamped.py b/dimos/msgs/geometry_msgs/PoseStamped.py index 237cf31225..f7adceab3b 100644 --- a/dimos/msgs/geometry_msgs/PoseStamped.py +++ b/dimos/msgs/geometry_msgs/PoseStamped.py @@ -41,7 +41,7 @@ def sec_nsec(ts): class PoseStamped(Pose, Timestamped): - name = "geometry_msgs.PoseStamped" + msg_name = "geometry_msgs.PoseStamped" ts: float frame_id: str diff --git a/dimos/msgs/geometry_msgs/Quaternion.py b/dimos/msgs/geometry_msgs/Quaternion.py index 3fb13df532..ccb3328510 100644 --- a/dimos/msgs/geometry_msgs/Quaternion.py +++ b/dimos/msgs/geometry_msgs/Quaternion.py @@ -34,7 +34,7 @@ class Quaternion(LCMQuaternion): y: float = 0.0 z: float = 0.0 w: float = 1.0 - name = "geometry_msgs.Quaternion" + msg_name = "geometry_msgs.Quaternion" @classmethod def lcm_decode(cls, data: bytes | BinaryIO): diff --git a/dimos/msgs/geometry_msgs/Vector3.py b/dimos/msgs/geometry_msgs/Vector3.py index 896d6bc43b..7f839f2773 100644 --- a/dimos/msgs/geometry_msgs/Vector3.py +++ b/dimos/msgs/geometry_msgs/Vector3.py @@ -45,7 +45,7 @@ class Vector3(LCMVector3): x: float = 0.0 y: float = 0.0 z: float = 0.0 - name = "geometry_msgs.Vector3" + msg_name = "geometry_msgs.Vector3" @classmethod def lcm_decode(cls, data: bytes | BinaryIO): diff --git a/dimos/msgs/sensor_msgs/Image.py b/dimos/msgs/sensor_msgs/Image.py index 6179746340..2ac53a2fd7 100644 --- a/dimos/msgs/sensor_msgs/Image.py +++ b/dimos/msgs/sensor_msgs/Image.py @@ -42,7 +42,7 @@ class ImageFormat(Enum): class Image(Timestamped): """Standardized image type with LCM integration.""" - name = "sensor_msgs.Image" + msg_name = "sensor_msgs.Image" data: np.ndarray format: ImageFormat = field(default=ImageFormat.BGR) frame_id: str = field(default="") diff --git a/dimos/msgs/sensor_msgs/PointCloud2.py b/dimos/msgs/sensor_msgs/PointCloud2.py index 776c81d056..0332dc295c 100644 --- a/dimos/msgs/sensor_msgs/PointCloud2.py +++ b/dimos/msgs/sensor_msgs/PointCloud2.py @@ -33,7 +33,7 @@ # TODO: encode/decode need to be updated to work with full spectrum of pointcloud2 fields class PointCloud2(Timestamped): - name = "sensor_msgs.PointCloud2" + msg_name = "sensor_msgs.PointCloud2" def __init__( self, diff --git a/dimos/protocol/pubsub/lcmpubsub.py b/dimos/protocol/pubsub/lcmpubsub.py index 3ea30c7074..68a5bd3008 100644 --- a/dimos/protocol/pubsub/lcmpubsub.py +++ b/dimos/protocol/pubsub/lcmpubsub.py @@ -31,7 +31,7 @@ @runtime_checkable class LCMMsg(Protocol): - name: str + msg_name: str @classmethod def lcm_decode(cls, data: bytes) -> "LCMMsg": @@ -51,7 +51,7 @@ class Topic: def __str__(self) -> str: if self.lcm_type is None: return self.topic - return f"{self.topic}#{self.lcm_type.name}" + return f"{self.topic}#{self.lcm_type.msg_name}" class LCMPubSubBase(PubSub[Topic, Any], LCMService): diff --git a/dimos/protocol/pubsub/test_lcmpubsub.py b/dimos/protocol/pubsub/test_lcmpubsub.py index a641dbd2cd..fb30f41a07 100644 --- a/dimos/protocol/pubsub/test_lcmpubsub.py +++ b/dimos/protocol/pubsub/test_lcmpubsub.py @@ -30,7 +30,7 @@ class MockLCMMessage: """Mock LCM message for testing""" - name = "geometry_msgs.Mock" + msg_name = "geometry_msgs.Mock" def __init__(self, data): self.data = data diff --git a/pyproject.toml b/pyproject.toml index 2d258827a7..4a1eeccee5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,10 +93,11 @@ dependencies = [ "dask[complete]==2025.5.1", # LCM / DimOS utilities - "dimos-lcm @ git+https://github.com/dimensionalOS/dimos-lcm.git@main", - + "dimos-lcm @ git+https://github.com/dimensionalOS/dimos-lcm.git@c615b2a6d99613b6ebc80dcf3e8a2f59416958b3" + ] + [project.optional-dependencies] manipulation = [