org.robokind.api.motion.servos.config
Class ServoRobotConfig

java.lang.Object
  extended by org.robokind.api.motion.servos.config.ServoRobotConfig

public class ServoRobotConfig
extends Object

Configurations for a ServoRobot.

Author:
Matthew Stevenson

Constructor Summary
ServoRobotConfig()
          Creates an empty RobotConfig.
 
Method Summary
 void addControllerContext(ServoRobot.ServoControllerContext context)
          Adds a ServoControllerConfig to the RobotConfig.
 void addServoJoint(Joint.Id id, ServoController.ServoId servoId)
          Add a Joint to the RobotConfig with the given id and name.
 List<ServoRobot.ServoControllerContext> getControllerContexts()
          Returns the RobotConfig's JointControllerConnections.
 Map<Joint.Id,ServoController.ServoId> getIdMap()
          Returns a Map of JointIds and their Corresponding ServoIds.
 Robot.Id getRobotId()
          Returns the Id.
 void setRobotId(Robot.Id robotId)
          Sets the Id to use with the Robot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServoRobotConfig

public ServoRobotConfig()
Creates an empty RobotConfig.

Method Detail

getRobotId

public Robot.Id getRobotId()
Returns the Id.

Returns:
the Id

setRobotId

public void setRobotId(Robot.Id robotId)
Sets the Id to use with the Robot

Parameters:
robotId - Robot.Id to use

addServoJoint

public void addServoJoint(Joint.Id id,
                          ServoController.ServoId servoId)
Add a Joint to the RobotConfig with the given id and name.

Parameters:
id - Joint logical id
servoId -

getIdMap

public Map<Joint.Id,ServoController.ServoId> getIdMap()
Returns a Map of JointIds and their Corresponding ServoIds.

Returns:

addControllerContext

public void addControllerContext(ServoRobot.ServoControllerContext context)
Adds a ServoControllerConfig to the RobotConfig.

Parameters:
context - context to set

getControllerContexts

public List<ServoRobot.ServoControllerContext> getControllerContexts()
Returns the RobotConfig's JointControllerConnections.

Returns:
RobotConfig's JointControllerConnections


Copyright © 2011-2013. All Rights Reserved.