Public Types | Public Member Functions | Public Attributes | List of all members
hrp::ModelNodeSetImpl Class Reference

Public Types

enum  {
  PROTO_UNDEFINED = 0, PROTO_HUMANOID, PROTO_JOINT, PROTO_SEGMENT,
  PROTO_SENSOR, PROTO_HARDWARECOMPONENT, PROTO_EXTRAJOINT, NUM_PROTOS
}
 
typedef std::bitset< NUM_PROTOSProtoIdSet
 

Public Member Functions

VrmlVariantFieldaddField (const std::string &name, VrmlFieldTypeId type)
 
void addFloatField (const std::string &name, double defaultValue)
 
JointNodeSetPtr addJointNodeSet (VrmlProtoInstancePtr jointNode)
 
void checkExtraJointProto ()
 
void checkFieldType (const std::string &name, VrmlFieldTypeId type)
 
void checkHardwareComponentProto ()
 
void checkHumanoidProto ()
 
void checkJointProto ()
 
void checkSegmentProto ()
 
void checkSensorProtoCommon ()
 
void extractChildNodes (JointNodeSetPtr jointNodeSet, MFNode &childNodes, const ProtoIdSet acceptableProtoIds, const Matrix44 &T)
 
void extractHumanoidNode (VrmlParser &parser)
 
void extractJointNodes ()
 
bool loadModelFile (const std::string &filename)
 
 ModelNodeSetImpl (ModelNodeSet *self)
 
void putMessage (const std::string &message)
 
void requireField (const std::string &name, VrmlFieldTypeId type)
 
void throwExceptionOfIllegalField (const std::string &name, VrmlFieldTypeId typeId)
 

Public Attributes

std::vector< VrmlProtoInstancePtrextraJointNodes
 
VrmlProtoInstancePtr humanoidNode
 
int messageIndent
 
int numJointNodes
 
VrmlProtoPtr protoToCheck
 
JointNodeSetPtr rootJointNodeSet
 
ModelNodeSetself
 

Detailed Description

Definition at line 47 of file ModelNodeSet.cpp.

Member Typedef Documentation

◆ ProtoIdSet

Definition at line 76 of file ModelNodeSet.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PROTO_UNDEFINED 
PROTO_HUMANOID 
PROTO_JOINT 
PROTO_SEGMENT 
PROTO_SENSOR 
PROTO_HARDWARECOMPONENT 
PROTO_EXTRAJOINT 
NUM_PROTOS 

Definition at line 63 of file ModelNodeSet.cpp.

Constructor & Destructor Documentation

◆ ModelNodeSetImpl()

ModelNodeSetImpl::ModelNodeSetImpl ( ModelNodeSet self)

Definition at line 108 of file ModelNodeSet.cpp.

Member Function Documentation

◆ addField()

VrmlVariantField * ModelNodeSetImpl::addField ( const std::string &  name,
VrmlFieldTypeId  type 
)

Definition at line 269 of file ModelNodeSet.cpp.

◆ addFloatField()

void ModelNodeSetImpl::addFloatField ( const std::string &  name,
double  defaultValue 
)

Definition at line 281 of file ModelNodeSet.cpp.

◆ addJointNodeSet()

JointNodeSetPtr ModelNodeSetImpl::addJointNodeSet ( VrmlProtoInstancePtr  jointNode)

Definition at line 424 of file ModelNodeSet.cpp.

◆ checkExtraJointProto()

void ModelNodeSetImpl::checkExtraJointProto ( )

Definition at line 390 of file ModelNodeSet.cpp.

◆ checkFieldType()

void ModelNodeSetImpl::checkFieldType ( const std::string &  name,
VrmlFieldTypeId  type 
)

Definition at line 260 of file ModelNodeSet.cpp.

◆ checkHardwareComponentProto()

void ModelNodeSetImpl::checkHardwareComponentProto ( )

Definition at line 382 of file ModelNodeSet.cpp.

◆ checkHumanoidProto()

void ModelNodeSetImpl::checkHumanoidProto ( )

Definition at line 293 of file ModelNodeSet.cpp.

◆ checkJointProto()

void ModelNodeSetImpl::checkJointProto ( )

Definition at line 316 of file ModelNodeSet.cpp.

◆ checkSegmentProto()

void ModelNodeSetImpl::checkSegmentProto ( )

Definition at line 365 of file ModelNodeSet.cpp.

◆ checkSensorProtoCommon()

void ModelNodeSetImpl::checkSensorProtoCommon ( )

Definition at line 374 of file ModelNodeSet.cpp.

◆ extractChildNodes()

void ModelNodeSetImpl::extractChildNodes ( JointNodeSetPtr  jointNodeSet,
MFNode childNodes,
const ProtoIdSet  acceptableProtoIds,
const Matrix44 T 
)

Definition at line 449 of file ModelNodeSet.cpp.

◆ extractHumanoidNode()

void ModelNodeSetImpl::extractHumanoidNode ( VrmlParser parser)

Definition at line 208 of file ModelNodeSet.cpp.

◆ extractJointNodes()

void ModelNodeSetImpl::extractJointNodes ( )

Definition at line 400 of file ModelNodeSet.cpp.

◆ loadModelFile()

bool ModelNodeSetImpl::loadModelFile ( const std::string &  filename)

Definition at line 187 of file ModelNodeSet.cpp.

◆ putMessage()

void ModelNodeSetImpl::putMessage ( const std::string &  message)

Definition at line 542 of file ModelNodeSet.cpp.

◆ requireField()

void ModelNodeSetImpl::requireField ( const std::string &  name,
VrmlFieldTypeId  type 
)

Definition at line 251 of file ModelNodeSet.cpp.

◆ throwExceptionOfIllegalField()

void ModelNodeSetImpl::throwExceptionOfIllegalField ( const std::string &  name,
VrmlFieldTypeId  typeId 
)

Definition at line 242 of file ModelNodeSet.cpp.

Member Data Documentation

◆ extraJointNodes

std::vector<VrmlProtoInstancePtr> hrp::ModelNodeSetImpl::extraJointNodes

Definition at line 74 of file ModelNodeSet.cpp.

◆ humanoidNode

VrmlProtoInstancePtr hrp::ModelNodeSetImpl::humanoidNode

Definition at line 57 of file ModelNodeSet.cpp.

◆ messageIndent

int hrp::ModelNodeSetImpl::messageIndent

Definition at line 59 of file ModelNodeSet.cpp.

◆ numJointNodes

int hrp::ModelNodeSetImpl::numJointNodes

Definition at line 56 of file ModelNodeSet.cpp.

◆ protoToCheck

VrmlProtoPtr hrp::ModelNodeSetImpl::protoToCheck

Definition at line 61 of file ModelNodeSet.cpp.

◆ rootJointNodeSet

JointNodeSetPtr hrp::ModelNodeSetImpl::rootJointNodeSet

Definition at line 58 of file ModelNodeSet.cpp.

◆ self

ModelNodeSet* hrp::ModelNodeSetImpl::self

Definition at line 54 of file ModelNodeSet.cpp.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:08