#include <robot.h>
Public Member Functions | |
| CBox () | |
| ~CBox () | |
| CBox (float pos_x, float pos_y, float pos_z, float width, float depth, float height, CFrame *transformation, float mass=0.1) | |
| void | set (float pos_x, float pos_y, float pos_z, float width, float depth, float height, CFrame *transformation, float mass=0.1) |
Static Public Member Functions | |
| static bool | xmlToBox (CBox *box, TiXmlElement *boxNode, CRobot *robot) |
| Transforms a <BOX> (xml object) into a CBox. | |
| static bool | xmlToColor (CVec &color, TiXmlElement *colorNode) |
| Transforms a <COLOR> (xml object) into a vector of rgb values. | |
Public Attributes | |
| CVec | center |
| Center of cube in local frame. | |
| CVec | extents |
| Extents of cube in x-, y- and z-direction. | |
| CVec | color |
| Color associated with cube (xyz = rgb). | |
| CFrame * | frame |
| Local frame of cube (might be attached to a link joint). | |
| CMatrix * | rot |
| Homogenous transformation of box in local frame. | |
| float | mass |
| Mass associated with the cube. | |
| char | name [256] |
| Name of body part the box belongs to. | |
| CBox::CBox | ( | ) |
| CBox::~CBox | ( | ) |
| CBox::CBox | ( | float | pos_x, | |
| float | pos_y, | |||
| float | pos_z, | |||
| float | width, | |||
| float | depth, | |||
| float | height, | |||
| CFrame * | transformation, | |||
| float | mass = 0.1 | |||
| ) |
| void CBox::set | ( | float | pos_x, | |
| float | pos_y, | |||
| float | pos_z, | |||
| float | width, | |||
| float | depth, | |||
| float | height, | |||
| CFrame * | transformation, | |||
| float | mass = 0.1 | |||
| ) |
Transforms a <BOX> (xml object) into a CBox.
| bool CBox::xmlToColor | ( | CVec & | color, | |
| TiXmlElement * | colorNode | |||
| ) | [static] |
Transforms a <COLOR> (xml object) into a vector of rgb values.
Center of cube in local frame.
Extents of cube in x-, y- and z-direction.
Color associated with cube (xyz = rgb).
Local frame of cube (might be attached to a link joint).
| float CBox::mass |
Mass associated with the cube.
| char CBox::name[256] |
Name of body part the box belongs to.
1.5.2