Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dimos/msgs/geometry_msgs/Pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion dimos/msgs/geometry_msgs/PoseStamped.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion dimos/msgs/geometry_msgs/Quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion dimos/msgs/geometry_msgs/Vector3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion dimos/msgs/sensor_msgs/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="")
Expand Down
2 changes: 1 addition & 1 deletion dimos/msgs/sensor_msgs/PointCloud2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions dimos/protocol/pubsub/lcmpubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

@runtime_checkable
class LCMMsg(Protocol):
name: str
msg_name: str

@classmethod
def lcm_decode(cls, data: bytes) -> "LCMMsg":
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion dimos/protocol/pubsub/test_lcmpubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [

Expand Down