12 #ifndef OPENHRP_WORLD_H_INCLUDED 13 #define OPENHRP_WORLD_H_INCLUDED 20 #include <hrpCorba/DynamicsSimulator.hh> 74 void calcNextState(OpenHRP::CollisionSequence& corbaCollisionSequence);
86 int numSensors(
int sensorType,
const char* charName);
91 void getAllCharacterData(
const char* name, OpenHRP::DynamicsSimulator::LinkDataType
type, OpenHRP::DblSequence_out& rdata);
92 void setAllCharacterData(
const char* name, OpenHRP::DynamicsSimulator::LinkDataType type,
const OpenHRP::DblSequence& wdata);
132 typedef std::map<std::string, int> NameToIndexMap;
133 NameToIndexMap nameToBodyIndexMap;
135 typedef std::map<BodyPtr, int> BodyToIndexMap;
136 BodyToIndexMap bodyToIndexMap;
143 bool operator<(
const LinkPairKey& pair2)
const;
145 typedef std::map<LinkPairKey, int> LinkPairKeyToIndexMap;
146 LinkPairKeyToIndexMap linkPairKeyToIndexMap;
void setAllCharacterData(const char *name, OpenHRP::DynamicsSimulator::LinkDataType type, const OpenHRP::DblSequence &wdata)
std::vector< Sensor * > sensors
png_infop png_charp png_int_32 png_int_32 int * type
double currentTime(void) const
void setGravityAcceleration(const fVec3 &g)
void _get_all_character_data_sub(Joint *cur, int index, OpenHRP::DynamicsSimulator::LinkDataType type, OpenHRP::DblSequence_out &rdata)
bool operator<(const EchoSample &, const EchoSample &)
void addCharacter(Joint *rjoint, const std::string &_name, OpenHRP::LinkInfoSequence_var links)
void enableSensors(bool on)
CharacterInfo(Joint *_root, const std::string &_name)
void getAllCharacterData(const char *name, OpenHRP::DynamicsSimulator::LinkDataType type, OpenHRP::DblSequence_out &rdata)
Sensor * findSensor(const char *sensorName, const char *charName)
boost::shared_ptr< Body > BodyPtr
double timeStep(void) const
void calcNextState(OpenHRP::CollisionSequence &corbaCollisionSequence)
std::vector< Joint * > links
void _set_all_character_data_sub(Joint *cur, int index, OpenHRP::DynamicsSimulator::LinkDataType type, const OpenHRP::DblSequence &wdata)
int numRegisteredLinkPairs
const fVec3 & getGravityAcceleration()
void setRungeKuttaMethod()
void update_rate_gyro_sensor(RateGyroSensor *rgs)
std::vector< int > jointIDs
int addSensor(Joint *jnt, int sensorType, int id, const std::string name, const fVec3 &_localPos, const fMat33 &_localR)
void getAllCharacterPositions(OpenHRP::CharacterPositionSequence &all_char_pos)
3x3 matrix and 3-element vector classes.
std::vector< CharacterInfo > characters
Joint * rootJoint(int index)
void _get_all_sensor_states_sub(Joint *cur, int &count, OpenHRP::SensorState &state)
void calcCharacterJacobian(const char *characterName, const char *baseLink, const char *targetLink, fMat &J)
void addCollisionCheckLinkPair(Joint *jnt1, Joint *jnt2, double staticFriction, double slipFriction, double epsilon)
void setCurrentTime(double)
std::vector< SDContactPair * > contact_pairs
void update_accel_sensor(AccelSensor *as)
Main class for forward dynamics computation.
The class for representing a joint.
void update_force_sensor(ForceSensor *fs)
void clearCollisionPairs()
Matrix of generic size. The elements are stored in a one-dimensional array in row-major order...
void getAllSensorStates(OpenHRP::SensorStateSequence &all_sensor_states)