public interface ActionPublisher
Action, turn it into
a ROS message and publish it to a ROS topic. The abstract class ActionPublisher.DirectActionPublisher
provides a Publisher data member and constructors for easily setting up a means to publish to
RosBridge.
Note that the publishAction(Action) method should return a time delay, in
milliseconds, that tells the caller how long it should wait for the published action to finish executing. If the
publishAction(Action) method blocks until an action has completed
executing on ROS, then it should return 0. This approach allows you to dynamically determine
if actions should be synchronous or asynchronous by how you implement ActionPublisher.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ActionPublisher.DirectActionPublisher
An abstract class that implements
ActionPublisher and provides
a Publisher data member, constructors, and setters and getters for streamlining
the publishing of messages to ROS BRidge. |
| Modifier and Type | Method and Description |
|---|---|
int |
publishAction(burlap.mdp.core.action.Action a)
Takes a BURLAP
Action turns into a ROS message, and publishes it to ROS through this
object's ROS Bridge Publisher object. |
int publishAction(burlap.mdp.core.action.Action a)
Action turns into a ROS message, and publishes it to ROS through this
object's ROS Bridge Publisher object. Note that when you implement this method, you must make the publish
call to ROSBridge yourself using a Publisher object.a - The BURLAP Action to turn into a ROS message and publish.Copyright © 2016. All rights reserved.