|
SELAB3 Unity
|
Script on the main manipulator to build the robot arm and remove it More...
Public Types | |
| enum | ModuleType |
| Each module has a type. Outside of the Invalid type, there are 4 types: More... | |
Public Member Functions | |
| ModuleType | TypeOfLink (LinkSpec link) |
| Converts the XML-parsed LinkSpec to ModuleType | |
| bool | BuildAgent (string urdf) |
| Build a robot arm. Should only be called once, in the beginning, because the manipulatorAgent would be instantiated twice. Saves the RobotSpec specification after parsing so the robot can be rebuild (see RebuildAgent) More... | |
| void | DestroyAgent () |
| Removes the current robot arm | |
| bool | RebuildAgent () |
| Removes the current robot arm and rebuilds it. More... | |
| int | GetJointAmount () |
| Returns the amount of joints the currently built robot arm has (zero if no arm built) More... | |
Properties | |
| GameObject | EndEffector [get] |
Script on the main manipulator to build the robot arm and remove it
Each module has a type. Outside of the Invalid type, there are 4 types:
Anchor: Special case for the lowest module. Has 0 or 1 joints.
Tilting: Module that has 1 joint at the base that can 'tilt' the robot.
Rotating: Module that has 1 joint in the middle, rotating along the axis of the module.
Complex: Module that has 2 joints: a tilting and a rotating one.
|
inline |
Build a robot arm. Should only be called once, in the beginning, because the manipulatorAgent would be instantiated twice. Saves the RobotSpec specification after parsing so the robot can be rebuild (see RebuildAgent)
| urdf | The robot specfication in URDF format, to be parsed by using XmlSerializer with the RobotSpec specification |
|
inline |
Returns the amount of joints the currently built robot arm has (zero if no arm built)
|
inline |
Removes the current robot arm and rebuilds it.