File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
formant_ros2_adapter/scripts Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1192,7 +1192,15 @@ def handle_formant_teleop_msg(self, msg):
1192
1192
self .publish_ros2_numeric (publisher , ros2_msg_type , msg_value )
1193
1193
1194
1194
elif msg .HasField ("point" ):
1195
- print ("WARNING: Point is not yet supported" )
1195
+ point = Point (x = msg .point .x , y = msg .point .y , z = msg .point .z )
1196
+ if ros2_msg_type == "Point" :
1197
+ ros2_msg = point
1198
+ elif ros2_msg == "PointStamped" :
1199
+ ros2_msg = PointStamped (point = point )
1200
+ else :
1201
+ self ._logger .warn ("Unsupported Point Type: %s" % ros2_msg_type )
1202
+ publisher .publish (ros2_msg )
1203
+
1196
1204
elif msg .HasField ("pose" ):
1197
1205
print ("WARNING: Pose is not yet supported" )
1198
1206
elif msg .HasField ("pose_with_covariance" ):
You can’t perform that action at this time.
0 commit comments