Skip to content

Commit b323138

Browse files
Fix point type publish
1 parent 73a3265 commit b323138

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

formant_ros2_adapter/scripts/components/publisher/generic_publisher.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ def publish(self, formant_stream, msg):
136136
self._publish_ros2_numeric(publisher, ros2_msg_type, msg_value)
137137

138138
elif msg.HasField("point"):
139-
self._logger.warn("Point is not yet supported")
140-
elif msg.HasField("pose"):
141139
point = Point(x=msg.point.x, y=msg.point.y, z=msg.point.z)
142140
if ros2_msg_type == "Point":
143141
ros2_msg = point
@@ -147,8 +145,12 @@ def publish(self, formant_stream, msg):
147145
self._logger.warn("Unsupported Point Type: %s" % ros2_msg_type)
148146
publisher.publish(ros2_msg)
149147

148+
elif msg.HasField("pose"):
149+
self._logger.warn("Pose is not yet supported")
150+
150151
elif msg.HasField("pose_with_covariance"):
151152
self._logger.warn("Pose_with_covariance is not yet supported")
153+
152154
elif msg.HasField("twist"):
153155
if ros2_msg_type == "Twist":
154156
ros2_msg = Twist()

0 commit comments

Comments
 (0)