iCub-main
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
worldSim Class Reference

#include <world.h>

+ Inheritance diagram for worldSim:

Classes

class  MyObject
 
class  MyObject1
 
class  MyObject2
 
class  MyObject3
 

Public Member Functions

void syncAngles ()
 
void ballDamping ()
 
void draw ()
 
void drawGeom (dGeomID g, const dReal *pos, const dReal *rot)
 
void setPosition (dReal agent1X, dReal agent1Z, dReal agent1Y)
 
void activateWorld (RobotConfig &config)
 
void init (dWorldID world, dSpaceID space, dReal X, dReal Y, dReal Z, RobotConfig &config)
 
void loadTexture (std::string texture, int numTexture)
 
 ~worldSim ()
 
 worldSim (dWorldID world, dSpaceID space, dReal X, dReal Y, dReal Z, RobotConfig &config)
 
- Public Member Functions inherited from worldSimData
 worldSimData ()
 

Public Attributes

std::string actWorld
 
dTriMeshDataID TriData [100]
 
dTriMeshX trimesh [100]
 
dTriMeshDataID s_TriData [100]
 
dTriMeshX s_trimesh [100]
 
dJointID joint [numObjJoints]
 
dReal speed [numObjJoints]
 
dJointID j
 
dBodyID tableBody [5]
 
dGeomID tableGeom [5]
 
dBodyID tempBody
 
dGeomID tempGeom [2]
 
dBodyID ballBody
 
dGeomID ballGeom
 
dGeomID box_part [14]
 
dGeomID box_geom [14]
 
dBodyID Box
 
dSpaceID boxObj
 
dBodyID box
 
dGeomID boxgeom
 
bool WAITLOADING
 
bool static_model
 
MyObject obj [MAXNUM]
 
MyObject s_obj [MAXNUM]
 
WorldObjectListOf< MyObjectbox_static
 
WorldObjectListOf< MyObjectbox_dynamic
 
MyObject1 cyl_obj [MAXNUM]
 
MyObject1 s_cyl_obj [MAXNUM]
 
WorldObjectListOf< MyObject1cylinder_static
 
WorldObjectListOf< MyObject1cylinder_dynamic
 
int modelTexture [100]
 
int s_modelTexture [100]
 
MyObject2 ThreeD_obj [100]
 
MyObject2 s_ThreeD_obj [100]
 
WorldObjectListOf< MyObject2model_static
 
WorldObjectListOf< MyObject2model_dynamic
 
MyObject3 sph [MAXNUM]
 
MyObject3 s_sph [MAXNUM]
 
WorldObjectListOf< MyObject3sphere_static
 
WorldObjectListOf< MyObject3sphere_dynamic
 
std::string texture
 
std::string model_DIR
 
- Public Attributes inherited from worldSimData
double l_massobj0
 
double l_massobj1
 
double l_massobj2
 
double l_massobj3
 
int OBJNUM
 
int waitOBJ
 
int S_OBJNUM
 
int SPHNUM
 
int waitSPH
 
int S_SPHNUM
 
int cylOBJNUM
 
int waitOBJ1
 
int S_cylOBJNUM
 
int waitMOD
 
int s_waitMOD
 
int MODEL_NUM
 
int s_MODEL_NUM
 
dReal color [100][3]
 
dReal s_color [100][3]
 
dReal color1 [100][3]
 
dReal s_color1 [100][3]
 
dReal color2 [100][3]
 
dReal s_color2 [100][3]
 

Static Public Attributes

static const bool textured = true
 

Detailed Description

Definition at line 186 of file world.h.

Constructor & Destructor Documentation

◆ ~worldSim()

worldSim::~worldSim ( )

Definition at line 316 of file world.cpp.

◆ worldSim()

worldSim::worldSim ( dWorldID  world,
dSpaceID  space,
dReal  X,
dReal  Y,
dReal  Z,
RobotConfig config 
)

Definition at line 330 of file world.cpp.

Member Function Documentation

◆ activateWorld()

void worldSim::activateWorld ( RobotConfig config)

Definition at line 196 of file world.cpp.

◆ ballDamping()

void worldSim::ballDamping ( )

Definition at line 46 of file world.cpp.

◆ draw()

void worldSim::draw ( )

Definition at line 62 of file world.cpp.

◆ drawGeom()

void worldSim::drawGeom ( dGeomID  g,
const dReal *  pos,
const dReal *  rot 
)

◆ init()

void worldSim::init ( dWorldID  world,
dSpaceID  space,
dReal  X,
dReal  Y,
dReal  Z,
RobotConfig config 
)

Definition at line 207 of file world.cpp.

◆ loadTexture()

void worldSim::loadTexture ( std::string  texture,
int  numTexture 
)

Definition at line 172 of file world.cpp.

◆ setPosition()

void worldSim::setPosition ( dReal  agent1X,
dReal  agent1Z,
dReal  agent1Y 
)

Definition at line 180 of file world.cpp.

◆ syncAngles()

void worldSim::syncAngles ( )

Definition at line 43 of file world.cpp.

Member Data Documentation

◆ actWorld

std::string worldSim::actWorld

Definition at line 189 of file world.h.

◆ ballBody

dBodyID worldSim::ballBody

Definition at line 209 of file world.h.

◆ ballGeom

dGeomID worldSim::ballGeom

Definition at line 210 of file world.h.

◆ Box

dBodyID worldSim::Box

Definition at line 215 of file world.h.

◆ box

dBodyID worldSim::box

Definition at line 220 of file world.h.

◆ box_dynamic

WorldObjectListOf<MyObject> worldSim::box_dynamic

Definition at line 241 of file world.h.

◆ box_geom

dGeomID worldSim::box_geom[14]

Definition at line 214 of file world.h.

◆ box_part

dGeomID worldSim::box_part[14]

Definition at line 213 of file world.h.

◆ box_static

WorldObjectListOf<MyObject> worldSim::box_static

Definition at line 240 of file world.h.

◆ boxgeom

dGeomID worldSim::boxgeom

Definition at line 221 of file world.h.

◆ boxObj

dSpaceID worldSim::boxObj

Definition at line 218 of file world.h.

◆ cyl_obj

MyObject1 worldSim::cyl_obj[MAXNUM]

Definition at line 255 of file world.h.

◆ cylinder_dynamic

WorldObjectListOf<MyObject1> worldSim::cylinder_dynamic

Definition at line 259 of file world.h.

◆ cylinder_static

WorldObjectListOf<MyObject1> worldSim::cylinder_static

Definition at line 258 of file world.h.

◆ j

dJointID worldSim::j

Definition at line 201 of file world.h.

◆ joint

dJointID worldSim::joint[numObjJoints]

Definition at line 199 of file world.h.

◆ model_DIR

std::string worldSim::model_DIR

Definition at line 296 of file world.h.

◆ model_dynamic

WorldObjectListOf<MyObject2> worldSim::model_dynamic

Definition at line 277 of file world.h.

◆ model_static

WorldObjectListOf<MyObject2> worldSim::model_static

Definition at line 276 of file world.h.

◆ modelTexture

int worldSim::modelTexture[100]

Definition at line 261 of file world.h.

◆ obj

MyObject worldSim::obj[MAXNUM]

Definition at line 237 of file world.h.

◆ s_cyl_obj

MyObject1 worldSim::s_cyl_obj[MAXNUM]

Definition at line 256 of file world.h.

◆ s_modelTexture

int worldSim::s_modelTexture[100]

Definition at line 262 of file world.h.

◆ s_obj

MyObject worldSim::s_obj[MAXNUM]

Definition at line 238 of file world.h.

◆ s_sph

MyObject3 worldSim::s_sph[MAXNUM]

Definition at line 290 of file world.h.

◆ s_ThreeD_obj

MyObject2 worldSim::s_ThreeD_obj[100]

Definition at line 274 of file world.h.

◆ s_TriData

dTriMeshDataID worldSim::s_TriData[100]

Definition at line 193 of file world.h.

◆ s_trimesh

dTriMeshX worldSim::s_trimesh[100]

Definition at line 194 of file world.h.

◆ speed

dReal worldSim::speed[numObjJoints]

Definition at line 200 of file world.h.

◆ sph

MyObject3 worldSim::sph[MAXNUM]

Definition at line 289 of file world.h.

◆ sphere_dynamic

WorldObjectListOf<MyObject3> worldSim::sphere_dynamic

Definition at line 293 of file world.h.

◆ sphere_static

WorldObjectListOf<MyObject3> worldSim::sphere_static

Definition at line 292 of file world.h.

◆ static_model

bool worldSim::static_model

Definition at line 224 of file world.h.

◆ tableBody

dBodyID worldSim::tableBody[5]

Definition at line 203 of file world.h.

◆ tableGeom

dGeomID worldSim::tableGeom[5]

Definition at line 204 of file world.h.

◆ tempBody

dBodyID worldSim::tempBody

Definition at line 206 of file world.h.

◆ tempGeom

dGeomID worldSim::tempGeom[2]

Definition at line 207 of file world.h.

◆ texture

std::string worldSim::texture

Definition at line 295 of file world.h.

◆ textured

const bool worldSim::textured = true
static

Definition at line 188 of file world.h.

◆ ThreeD_obj

MyObject2 worldSim::ThreeD_obj[100]

Definition at line 273 of file world.h.

◆ TriData

dTriMeshDataID worldSim::TriData[100]

Definition at line 190 of file world.h.

◆ trimesh

dTriMeshX worldSim::trimesh[100]

Definition at line 191 of file world.h.

◆ WAITLOADING

bool worldSim::WAITLOADING

Definition at line 223 of file world.h.


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