File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ihmc-communication/src/main/java/us/ihmc/communication/ros2 Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 33import org .apache .commons .lang3 .mutable .MutableInt ;
44import std_msgs .msg .dds .Bool ;
55import std_msgs .msg .dds .Empty ;
6+ import std_msgs .msg .dds .Int32 ;
67import us .ihmc .commons .thread .Notification ;
78import us .ihmc .commons .thread .Throttler ;
89import us .ihmc .commons .thread .TypedNotification ;
@@ -179,6 +180,13 @@ public void publish(ROS2Topic<Empty> topic)
179180 ros2PublisherMap .publish (topic );
180181 }
181182
183+ public void publish (ROS2Topic <Int32 > topic , int value )
184+ {
185+ Int32 message = new Int32 ();
186+ message .setData (value );
187+ ros2PublisherMap .publish (topic , message );
188+ }
189+
182190 @ Override
183191 public void publish (ROS2Topic <Bool > topic , boolean message )
184192 {
You can’t perform that action at this time.
0 commit comments