Virtual Robot Racing League

Developer Center

VRRL
IRobotThruster Interface Reference

A representation of a rocket thruster on the robot More...

Public Member Functions

void GetThrusterFacingDirection (out double x, out double y, out double z)
 Returns a unit vector representing the direction that this thruster pushes the robot when the current speed is more than zero. This unit vector is relative to the robot, not the world. More...
 
void GetOffsetFromRobotCenterOfMass (out double x, out double y, out double z)
 Returns the offset from the end of this thruster to the robot's center of mass, in meters.
This vector is relative to the robot, not the world. More...
 

Properties

IRobotExplorer Robot [get]
 The robot this thruster is attached to More...
 
int PropellerIndex [get]
 The index of this thruster in the robot's list of propellers More...
 
double MaxThrust [get]
 Maximum amount of force applied by the thruster More...
 
double CurrentThrustAmount [get]
 The target amount of thrust applied, from zero (closed nozzle) to one (open nozzle) More...
 
double TargetThrustAmount [get, set]
 The target amount of thrust applied, from zero (closed nozzle) to one (open nozzle) More...
 

Detailed Description

A representation of a rocket thruster on the robot

Member Function Documentation

◆ GetOffsetFromRobotCenterOfMass()

void IRobotThruster.GetOffsetFromRobotCenterOfMass ( out double  x,
out double  y,
out double  z 
)

Returns the offset from the end of this thruster to the robot's center of mass, in meters.
This vector is relative to the robot, not the world.

◆ GetThrusterFacingDirection()

void IRobotThruster.GetThrusterFacingDirection ( out double  x,
out double  y,
out double  z 
)

Returns a unit vector representing the direction that this thruster pushes the robot when the current speed is more than zero. This unit vector is relative to the robot, not the world.

Property Documentation

◆ CurrentThrustAmount

double IRobotThruster.CurrentThrustAmount
get

The target amount of thrust applied, from zero (closed nozzle) to one (open nozzle)

◆ MaxThrust

double IRobotThruster.MaxThrust
get

Maximum amount of force applied by the thruster

◆ PropellerIndex

int IRobotThruster.PropellerIndex
get

The index of this thruster in the robot's list of propellers

◆ Robot

IRobotExplorer IRobotThruster.Robot
get

The robot this thruster is attached to

◆ TargetThrustAmount

double IRobotThruster.TargetThrustAmount
getset

The target amount of thrust applied, from zero (closed nozzle) to one (open nozzle)