chrono::utils::ChParserOpenSim::Report Class Reference

Description

Report containing information about objects parsed from file.

#include <ChParserOpenSim.h>

Classes

struct  ForceInfo
 Information about a custom load created from OpenSim. More...
 
struct  JointInfo
 Information about a joint read in from OpenSim. More...
 

Public Member Functions

void Print () const
 Print information on all modeling elements parsed from osim file.
 
std::shared_ptr< ChBodyAuxRefGetBody (const std::string &name) const
 Get a handle to the body with specified name. More...
 
std::shared_ptr< ChLinkGetJoint (const std::string &name) const
 Get a handle to the joint with specified name. More...
 
std::shared_ptr< ChLoadBaseGetForce (const std::string &name) const
 Get a handle to the force element with specified name. More...
 

Public Attributes

std::unordered_map< std::string, std::shared_ptr< ChBodyAuxRef > > bodies
 list of body information
 
std::unordered_map< std::string, JointInfojoints
 list of joint information
 
std::unordered_map< std::string, ForceInfoforces
 list of force information
 

Member Function Documentation

std::shared_ptr< ChBodyAuxRef > chrono::utils::ChParserOpenSim::Report::GetBody ( const std::string &  name) const

Get a handle to the body with specified name.

If none exists, an empty shared pointer is returned. Note that all bodies created by the parser are of type ChBodyAuxRef (i.e., using a non-centroidal reference frame).

std::shared_ptr< ChLoadBase > chrono::utils::ChParserOpenSim::Report::GetForce ( const std::string &  name) const

Get a handle to the force element with specified name.

If none exists, an empty shared pointer is returned. The caller may need to downcast to the appropriate type.

std::shared_ptr< ChLink > chrono::utils::ChParserOpenSim::Report::GetJoint ( const std::string &  name) const

Get a handle to the joint with specified name.

If none exists, an empty shared pointer is returned. The caller may need to downcast to the appropriate type.