OSVR-Core
|
Public Member Functions | |
OSVR_COMMON_EXPORT | ParsedArticulation (std::string const &src) |
Constructor - performs parse and normalization of format. | |
ParsedArticulation (Json::Value src) | |
Constructor - performs normalization of format. | |
OSVR_COMMON_EXPORT bool | isValid () const |
Will return false if trackerPath is not specified. More... | |
OSVR_COMMON_EXPORT std::string | getBoneName () const |
Get the ultimate source/leaf of the articulation. More... | |
OSVR_COMMON_EXPORT std::string | getArticulationType () const |
Get the type of articulation. More... | |
OSVR_COMMON_EXPORT std::string | getTrackerPath () const |
Get the tracker path to sensor that corresponds to current articulation. More... | |
OSVR_COMMON_EXPORT void | setTrackerPath (std::string const &fullTrackerPath) |
Sets the tracker path. More... | |
std::string osvr::common::ParsedArticulation::getArticulationType | ( | ) | const |
Get the type of articulation.
Returns an empty string if it's not specified
std::string osvr::common::ParsedArticulation::getBoneName | ( | ) | const |
Get the ultimate source/leaf of the articulation.
May return an empty string if it it's not specified
std::string osvr::common::ParsedArticulation::getTrackerPath | ( | ) | const |
Get the tracker path to sensor that corresponds to current articulation.
Tracker path must be specified during the creation and will make articulation invalid
bool osvr::common::ParsedArticulation::isValid | ( | ) | const |
Will return false if trackerPath is not specified.
Other details are optional
void osvr::common::ParsedArticulation::setTrackerPath | ( | std::string const & | fullTrackerPath | ) |
Sets the tracker path.
After getting the path from articulation spec, it should be converted to full path (with device name)