Skip to content

Commit e9ada27

Browse files
committed
Get foundationpose on jetson testbed talking to the behavior UI locally.
1 parent 787a0c5 commit e9ada27

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ihmc-communication/src/main/java/us/ihmc/communication/ros2/ROS2Helper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.apache.commons.lang3.mutable.MutableInt;
44
import std_msgs.msg.dds.Bool;
55
import std_msgs.msg.dds.Empty;
6+
import std_msgs.msg.dds.Int32;
67
import us.ihmc.commons.thread.Notification;
78
import us.ihmc.commons.thread.Throttler;
89
import 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
{

0 commit comments

Comments
 (0)