org.robokind.api.motion.blending
Class RobotOutput

java.lang.Object
  extended by org.robokind.api.motion.blending.RobotOutput
All Implemented Interfaces:
BlenderOutput<Robot.RobotPositionMap>

public class RobotOutput
extends Object
implements BlenderOutput<Robot.RobotPositionMap>

A BlenderOutput implementation which sends Blender movements to a List of Robots.

Author:
Matthew Stevenson

Constructor Summary
RobotOutput(org.osgi.framework.BundleContext context, Robot.Id robotId)
          Creates a new RobotOutput.
 
Method Summary
 Robot.RobotPositionMap getPositions()
          Get the last output positions.
 void write(Robot.RobotPositionMap positions, long lenMillisec)
          Writes a map of output positions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobotOutput

public RobotOutput(org.osgi.framework.BundleContext context,
                   Robot.Id robotId)
Creates a new RobotOutput.

Parameters:
context - BundleContext for tracking a robot
robotId - robot to track
Method Detail

write

public void write(Robot.RobotPositionMap positions,
                  long lenMillisec)
Description copied from interface: BlenderOutput
Writes a map of output positions.

Specified by:
write in interface BlenderOutput<Robot.RobotPositionMap>
Parameters:
positions - output positions
lenMillisec - duration of the output movement in milliseconds

getPositions

public Robot.RobotPositionMap getPositions()
Description copied from interface: BlenderOutput
Get the last output positions.

Specified by:
getPositions in interface BlenderOutput<Robot.RobotPositionMap>
Returns:
last output positions


Copyright © 2011-2012. All Rights Reserved.