Go to the documentation of this file.
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);
99 void addCharacter(
Joint* rjoint,
const std::string& _name, OpenHRP::LinkInfoSequence_var links);
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;
double currentTime(void) const
void setGravityAcceleration(const fVec3 &g)
CharacterInfo(Joint *_root, const std::string &_name)
void getAllSensorStates(OpenHRP::SensorStateSequence &all_sensor_states)
void addCharacter(Joint *rjoint, const std::string &_name, OpenHRP::LinkInfoSequence_var links)
The class for representing a joint.
void _get_all_character_data_sub(Joint *cur, int index, OpenHRP::DynamicsSimulator::LinkDataType type, OpenHRP::DblSequence_out &rdata)
std::vector< Joint * > links
png_infop png_charp png_int_32 png_int_32 int * type
void getAllCharacterData(const char *name, OpenHRP::DynamicsSimulator::LinkDataType type, OpenHRP::DblSequence_out &rdata)
const fVec3 & getGravityAcceleration()
void enableSensors(bool on)
void setRungeKuttaMethod()
Matrix of generic size. The elements are stored in a one-dimensional array in row-major order.
Sensor * findSensor(const char *sensorName, const char *charName)
double timeStep(void) const
3x3 matrix and 3-element vector classes.
void calcNextState(OpenHRP::CollisionSequence &corbaCollisionSequence)
int numRegisteredLinkPairs
void getAllCharacterPositions(OpenHRP::CharacterPositionSequence &all_char_pos)
void _set_all_character_data_sub(Joint *cur, int index, OpenHRP::DynamicsSimulator::LinkDataType type, const OpenHRP::DblSequence &wdata)
boost::shared_ptr< Body > BodyPtr
void update_rate_gyro_sensor(RateGyroSensor *rgs)
png_infop png_charpp name
std::vector< CharacterInfo > characters
Joint * rootJoint(int index)
void _get_all_sensor_states_sub(Joint *cur, int &count, OpenHRP::SensorState &state)
void update_force_sensor(ForceSensor *fs)
std::vector< int > jointIDs
void setCurrentTime(double)
int addSensor(Joint *jnt, int sensorType, int id, const std::string name, const fVec3 &_localPos, const fMat33 &_localR)
void addCollisionCheckLinkPair(Joint *jnt1, Joint *jnt2, double staticFriction, double slipFriction, double epsilon)
void update_accel_sensor(AccelSensor *as)
std::vector< SDContactPair * > contact_pairs
void calcCharacterJacobian(const char *characterName, const char *baseLink, const char *targetLink, fMat &J)
void clearCollisionPairs()
void setAllCharacterData(const char *name, OpenHRP::DynamicsSimulator::LinkDataType type, const OpenHRP::DblSequence &wdata)
std::vector< Sensor * > sensors
Main class for forward dynamics computation.
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04