Class: SimpleActionServer

SimpleActionServer(options)

new SimpleActionServer(options)

An actionlib action server client.

Emits the following events:

  • 'goal' - Goal sent by action client.
  • 'cancel' - Action client has canceled the request.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
ros Ros

The ROSLIB.Ros connection handle.

serverName string

The action server name, like '/fibonacci'.

actionName string

The action message name, like 'actionlib_tutorials/FibonacciAction'.

Source:

Methods

sendFeedback(feedback)

Send a feedback message.

Parameters:
Name Type Description
feedback Object

The feedback to send to the client.

Source:

setAborted(result)

Set action state to aborted and return to client.

Parameters:
Name Type Description
result Object

The result to return to the client.

Source:

setPreempted()

Handle case where client requests preemption.

Source:

setSucceeded(result)

Set action state to succeeded and return to client.

Parameters:
Name Type Description
result Object

The result to return to the client.

Source: