SELAB3 Unity
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
JointController Class Reference

Class that keeps a list of the joints of the robot arm and can control them More...

Inheritance diagram for JointController:

Public Member Functions

void ActuateJoint (int jointIndex, float step)
 Actuate one joint of the robot arm More...
 
void ResetJoints ()
 Set all the targets of the robot joints to 0.
 
void RandomizeJoints ()
 Set all the targets of the robot joints to a random amount of degrees between -20 and 20, clamped by the limits of the joints.
 

Public Attributes

int stepSize = 10
 Actions are between -1 and 1. This variable is multiplied with the action and that is how many degrees the joint wil actuate
 

Properties

List< ArticulationBody > ArticulationBodies [get, set]
 List of joints of the robot arm
 

Detailed Description

Class that keeps a list of the joints of the robot arm and can control them

Member Function Documentation

◆ ActuateJoint()

void JointController.ActuateJoint ( int  jointIndex,
float  step 
)
inline

Actuate one joint of the robot arm

Parameters
jointIndexWhich joint should be actuated. Starts at the base of the robot arm
stepValue that is clamped between -1 and 1, indicating which direction the actuation should be in and how big it should be. It is multiplied by the stepSize member, so the maximum actuation is stepSize degrees.

The documentation for this class was generated from the following file: