Choreonoid  1.8
Public Member Functions | Friends | List of all members
cnoid::SimulationBody Class Reference

#include <SimulatorItem.h>

Inheritance diagram for cnoid::SimulationBody:
cnoid::Referenced

Public Member Functions

 SimulationBody (Body *body)
 
virtual ~SimulationBody ()
 
BodyItembodyItem () const
 
Bodybody () const
 
int numControllers () const
 
ControllerItemcontroller (int index=0) const
 
void cloneShapesOnce ()
 
virtual bool initialize (SimulatorItem *simulatorItem, BodyItem *bodyItem)
 
const std::string & recordItemPrefix () const
 
virtual void initializeRecordBuffers ()
 
virtual void initializeRecordItems ()
 
bool isActive () const
 
void setActive (bool on)
 
void notifyUnrecordedDeviceStateChange (Device *device)
 
virtual void bufferRecords ()
 
virtual void flushRecords ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Friends

class SimulatorItem
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ SimulationBody()

SimulationBody::SimulationBody ( Body body)

◆ ~SimulationBody()

SimulationBody::~SimulationBody ( )
virtual

Member Function Documentation

◆ body()

Body * SimulationBody::body ( ) const

◆ bodyItem()

BodyItem * SimulationBody::bodyItem ( ) const

◆ bufferRecords()

void SimulationBody::bufferRecords ( )
virtual

Called from the simulation loop thread.

◆ cloneShapesOnce()

void SimulationBody::cloneShapesOnce ( )

Call this in the initilization when the shapes are accessed after the initialization

◆ controller()

ControllerItem * SimulationBody::controller ( int  index = 0) const

◆ flushRecords()

void SimulationBody::flushRecords ( )
virtual

◆ initialize()

bool SimulationBody::initialize ( SimulatorItem simulatorItem,
BodyItem bodyItem 
)
virtual

◆ initializeRecordBuffers()

void SimulationBody::initializeRecordBuffers ( )
virtual

◆ initializeRecordItems()

void SimulationBody::initializeRecordItems ( )
virtual

◆ isActive()

bool SimulationBody::isActive ( ) const

Called from the simulation loop thread

◆ notifyUnrecordedDeviceStateChange()

void SimulationBody::notifyUnrecordedDeviceStateChange ( Device device)

Use this instead of Device::notifyStateChange when the state part which is not recoreded is changed

◆ numControllers()

int SimulationBody::numControllers ( ) const

◆ recordItemPrefix()

const std::string & SimulationBody::recordItemPrefix ( ) const

◆ setActive()

void SimulationBody::setActive ( bool  on)

Friends And Related Function Documentation

◆ SimulatorItem

friend class SimulatorItem
friend

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