org.cogchar.bind.rk.robot.model
Class ModelRobot

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.motion.AbstractRobot<ModelJoint>
          extended by org.cogchar.bind.rk.robot.model.ModelRobot
All Implemented Interfaces:
org.robokind.api.common.property.PropertyChangeSource, org.robokind.api.motion.Robot<ModelJoint>

public class ModelRobot
extends org.robokind.api.motion.AbstractRobot<ModelJoint>

Author:
Stu B.

Nested Class Summary
static interface ModelRobot.MoveListener
           
 
Nested classes/interfaces inherited from interface org.robokind.api.motion.Robot
org.robokind.api.motion.Robot.Id, org.robokind.api.motion.Robot.JointId, org.robokind.api.motion.Robot.RobotPositionHashMap, org.robokind.api.motion.Robot.RobotPositionMap
 
Field Summary
static org.robokind.api.common.config.VersionProperty VERSION
          Robot type VersionProperty.
static String VERSION_NAME
          Robot service name
static String VERSION_NUMBER
          Robot service version number.
 
Fields inherited from class org.robokind.api.motion.AbstractRobot
myJointList, myJointMap
 
Fields inherited from interface org.robokind.api.motion.Robot
PROP_CONNECTED, PROP_ENABLED, PROP_ID
 
Constructor Summary
ModelRobot(org.robokind.api.motion.Robot.Id robotId)
           
 
Method Summary
 boolean connect()
           
 void disconnect()
           
protected  String getDescription()
           
 boolean isConnected()
           
 void move(org.robokind.api.motion.Robot.RobotPositionMap positions, long lenMillisec)
           
 void notifyMoveListeners()
           
 void registerBonyJoint(ModelJoint bj)
           
 void registerMoveListener(ModelRobot.MoveListener ml)
           
 void updateConfig(BoneRobotConfig config, boolean flag_hardResetGoalPosToDefault)
           
 
Methods inherited from class org.robokind.api.motion.AbstractRobot
addJoint, clearJoints, getCurrentPositions, getDefaultPositions, getGoalPositions, getJoint, getJointIds, getJointList, getJointName, getRobotId, isEnabled, removeJoint, setEnabled
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

VERSION_NAME

public static final String VERSION_NAME
Robot service name

See Also:
Constant Field Values

VERSION_NUMBER

public static final String VERSION_NUMBER
Robot service version number.

See Also:
Constant Field Values

VERSION

public static final org.robokind.api.common.config.VersionProperty VERSION
Robot type VersionProperty.

Constructor Detail

ModelRobot

public ModelRobot(org.robokind.api.motion.Robot.Id robotId)
Method Detail

registerMoveListener

public void registerMoveListener(ModelRobot.MoveListener ml)

notifyMoveListeners

public void notifyMoveListeners()

getDescription

protected String getDescription()

connect

public boolean connect()

disconnect

public void disconnect()

move

public void move(org.robokind.api.motion.Robot.RobotPositionMap positions,
                 long lenMillisec)

registerBonyJoint

public void registerBonyJoint(ModelJoint bj)

isConnected

public boolean isConnected()

updateConfig

public void updateConfig(BoneRobotConfig config,
                         boolean flag_hardResetGoalPosToDefault)
Parameters:
config -


Copyright © 2010-2014. All Rights Reserved.