Go to the documentation of this file.
13 #ifndef OPENHRP_WORLD_H_INCLUDED
14 #define OPENHRP_WORLD_H_INCLUDED
18 #include <boost/shared_ptr.hpp>
19 #include <boost/intrusive_ptr.hpp>
26 class CollisionSequence;
44 unsigned int numBodies() {
return bodyInfoArray.size(); }
66 return bodyInfoArray[index].forwardDynamics;
74 int bodyIndex(
const std::string&
name);
92 void clearCollisionPairs();
98 void setTimeStep(
double dt);
110 void setCurrentTime(
double tm);
122 void setGravityAcceleration(
const Vector3& g);
135 void enableSensors(
bool on);
140 void setEulerMethod();
145 void setRungeKuttaMethod();
150 virtual void initialize();
155 virtual void calcNextState();
163 std::pair<int,bool> getIndexOfLinkPairs(
Link* link1,
Link* link2);
179 void updateRangeSensors();
217 virtual void calcNextState(OpenHRP::CollisionSequence& corbaCollisionSequence) {
double currentTime(void) const
get current time
BodyToIndexMap bodyToIndexMap
virtual void calcNextState(OpenHRP::CollisionSequence &corbaCollisionSequence)
ForwardDynamicsPtr forwardDynamics
double timeStep(void) const
get time step
unsigned int numBodies()
get the number of bodies in this world
LinkPairKeyToIndexMap linkPairKeyToIndexMap
int numRegisteredLinkPairs
virtual void calcNextState()
compute forward dynamics and update current state
boost::shared_ptr< ForwardDynamics > ForwardDynamicsPtr
TConstraintForceSolver constraintForceSolver
std::map< std::string, int > NameToIndexMap
std::vector< BodyInfo > bodyInfoArray
boost::shared_ptr< Body > BodyPtr
png_infop png_charpp name
virtual void initialize()
initialize this world. This must be called after all bodies are registered.
virtual void initialize()
initialize this world. This must be called after all bodies are registered.
const Vector3 & getGravityAcceleration()
get gravity acceleration
ForwardDynamicsPtr forwardDynamics(int index)
get forward dynamics computation method for body
std::map< LinkPairKey, int > LinkPairKeyToIndexMap
std::map< BodyPtr, int > BodyToIndexMap
NameToIndexMap nameToBodyIndexMap
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