#include <SimEntity.h>
Definition at line 46 of file SimEntity.h.
◆ SimEntity() [1/4]
mars::sim::SimEntity::SimEntity |
( |
const std::string & |
name | ) |
|
◆ SimEntity() [2/4]
◆ SimEntity() [3/4]
◆ SimEntity() [4/4]
◆ addController()
void mars::sim::SimEntity::addController |
( |
unsigned long |
controllerId | ) |
|
◆ addJoint()
void mars::sim::SimEntity::addJoint |
( |
long unsigned int |
jointId, |
|
|
const std::string & |
name |
|
) |
| |
◆ addMotor()
void mars::sim::SimEntity::addMotor |
( |
unsigned long |
motorId, |
|
|
const std::string & |
name |
|
) |
| |
◆ addNode()
void mars::sim::SimEntity::addNode |
( |
unsigned long |
nodeId, |
|
|
const std::string & |
name |
|
) |
| |
◆ addSensor()
void mars::sim::SimEntity::addSensor |
( |
unsigned long |
sensorId, |
|
|
const std::string & |
name |
|
) |
| |
◆ appendConfig()
◆ belongsToRobot()
bool mars::sim::SimEntity::belongsToRobot |
( |
unsigned long |
nodeId | ) |
|
◆ deSelect()
bool mars::sim::SimEntity::deSelect |
( |
unsigned long |
nodeId | ) |
|
notify the robot that a node has been deselected the robot will check if the node belongs to it
- Returns
- true if the node belongs to the robot; false otherwise
◆ getConfig()
const ConfigMap mars::sim::SimEntity::getConfig |
( |
| ) |
|
◆ getControllerList()
std::vector< unsigned long > mars::sim::SimEntity::getControllerList |
( |
| ) |
|
◆ getEntityCOM()
◆ getEntityMass()
sReal mars::sim::SimEntity::getEntityMass |
( |
| ) |
|
◆ getJoint() [1/2]
long unsigned int mars::sim::SimEntity::getJoint |
( |
const std::string & |
name | ) |
|
◆ getJoint() [2/2]
std::string mars::sim::SimEntity::getJoint |
( |
unsigned long |
id | ) |
|
◆ getMotor() [1/2]
long unsigned int mars::sim::SimEntity::getMotor |
( |
const std::string & |
name | ) |
|
returns the id of the motor with the given name with the current implementation this is slow O(n)
Definition at line 121 of file SimEntity.cpp.
◆ getMotor() [2/2]
std::string mars::sim::SimEntity::getMotor |
( |
long unsigned int |
id | ) |
|
◆ getName()
std::string mars::sim::SimEntity::getName |
( |
| ) |
|
|
inline |
◆ getNode() [1/2]
long unsigned int mars::sim::SimEntity::getNode |
( |
const std::string & |
name | ) |
|
returns the id of the node with the given name with the current implementation this is slow
Definition at line 107 of file SimEntity.cpp.
◆ getNode() [2/2]
std::string mars::sim::SimEntity::getNode |
( |
unsigned long |
id | ) |
|
◆ isSelected()
bool mars::sim::SimEntity::isSelected |
( |
| ) |
|
|
inline |
◆ printControllers()
void mars::sim::SimEntity::printControllers |
( |
| ) |
|
◆ printMotors()
void mars::sim::SimEntity::printMotors |
( |
| ) |
|
◆ printNodes()
void mars::sim::SimEntity::printNodes |
( |
| ) |
|
◆ removeEntity()
void mars::sim::SimEntity::removeEntity |
( |
| ) |
|
◆ select()
bool mars::sim::SimEntity::select |
( |
unsigned long |
nodeId | ) |
|
notify the robot that a node has been selected the robot will check if the node belongs to it
- Returns
- true if the node belongs to the robot; false otherwise
Definition at line 94 of file SimEntity.cpp.
◆ setInitialPose()
void mars::sim::SimEntity::setInitialPose |
( |
bool |
reset = false | ) |
|
◆ config
◆ control
◆ controllerIds
std::vector<unsigned long> mars::sim::SimEntity::controllerIds |
|
private |
◆ jointIds
std::map<unsigned long, std::string> mars::sim::SimEntity::jointIds |
|
private |
◆ motorIds
std::map<unsigned long, std::string> mars::sim::SimEntity::motorIds |
|
private |
◆ name
std::string mars::sim::SimEntity::name |
|
private |
◆ nodeIds
std::map<unsigned long, std::string> mars::sim::SimEntity::nodeIds |
|
private |
◆ selected
bool mars::sim::SimEntity::selected |
|
private |
◆ selectedNodes
std::set<unsigned long> mars::sim::SimEntity::selectedNodes |
|
private |
◆ sensorIds
std::map<unsigned long, std::string> mars::sim::SimEntity::sensorIds |
|
private |
The documentation for this class was generated from the following files:
- /Developer/bob-learning-dev/simulation/mars/sim/src/core/SimEntity.h
- /Developer/bob-learning-dev/simulation/mars/sim/src/core/SimEntity.cpp