Namespaces | |
constants | |
details | |
gui | |
internal | |
io | |
log | |
schema | |
utils | |
Typedefs | |
using | duration_ms = std::chrono::duration< double, std::milli > |
using | duration_us = std::chrono::duration< double, std::micro > |
using | clock = typename std::conditional< std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock >::type |
using | LTDLHandlePtr = std::shared_ptr< LTDLHandle > |
using | void_ptr = std::unique_ptr< void, void(*)(void *)> |
using | NodeHandlePtr = std::shared_ptr< ros::NodeHandle > |
Functions | |
template<typename T > | |
std::vector< T > | fromVectorOrElement (const mc_rtc::Configuration &config, const std::string &key, const std::vector< T > &defaultVec) |
template<typename T > | |
std::vector< T > | fromVectorOrElement (const mc_rtc::Configuration &config, const std::string &key) |
bool MC_RTC_UTILS_DLLAPI | debug () noexcept |
MC_RTC_UTILS_DLLAPI std::string | temp_directory_path (const std::string &suffix="") |
MC_RTC_UTILS_DLLAPI std::string | user_config_directory_path (const std::string &suffix="") |
template<typename T > | |
std::string | type_name () |
rbd::parsers::Visual | makeVisualSphere (double radius, const mc_rtc::gui::Color &color) |
rbd::parsers::Visual | makeVisualCylinder (double radius, double length, const mc_rtc::gui::Color &color) |
rbd::parsers::Visual | makeVisualBox (const Eigen::Vector3d &dim, const mc_rtc::gui::Color &color) |
rbd::parsers::Visual | makeVisualMesh (const std::string &path, Eigen::Vector3d scaleV) |
rbd::parsers::Visual | makeVisualMesh (const std::string &path, double scale) |
rbd::parsers::Visual | makeVisualSuperellispoid (const Eigen::Vector3d &size, double epsilon1, double epsilon2, const mc_rtc::gui::Color &color) |
template<typename T , typename... Args> | |
void_ptr | make_void_ptr (Args &&... args) |
template<typename T > | |
void_ptr | make_void_ptr (std::unique_ptr< T > ptr) |
Variables | |
struct MC_RTC_UTILS_DLLAPI | ConfigurationArrayIterator |
struct MC_RTC_UTILS_DLLAPI | Configuration |
constexpr auto | OUT_NONE = "\033[00m" |
constexpr auto | OUT_BLUE = "\033[01;34m" |
constexpr auto | OUT_GREEN = "\033[01;32m" |
constexpr auto | OUT_PURPLE = "\033[01;35m" |
constexpr auto | OUT_RED = "\033[01;31m" |
constexpr auto | getVisualSphere = details::getVisualGeometry<rbd::parsers::Geometry::Type::SPHERE> |
constexpr auto | getVisualCylinder = details::getVisualGeometry<rbd::parsers::Geometry::Type::CYLINDER> |
constexpr auto | getVisualBox = details::getVisualGeometry<rbd::parsers::Geometry::Type::BOX> |
constexpr auto | getVisualMesh = details::getVisualGeometry<rbd::parsers::Geometry::Type::MESH> |
constexpr auto | getVisualSuperellipsoid |
Interface used to load observers
This file holds all mc_rtc::Configuration based serialization operation for mc_rbdyn objects
Helper functions to emit deprecation messages when loading JSON/YAML from old versions
This header contains the base block of all elements in the GUI system. For the implementation details of specific elements look into their dedicated header
This file contains classes that are used to configure the visual styles of various elements in the GUI
This header defines a number of utility functions related to forming path in the environment
They are thin wrapper around boost::filesystem to be later replaced by std::filesystem after Ubuntu 18.04 support is fully dropped
This header provides a number of function to help with the creation of rbd::parsers::Visual elements
Helpers for unique_ptr<void, void (*)(void *)>
using mc_rtc::clock = typedef typename std::conditional<std::chrono::high_resolution_clock::is_steady, std::chrono::high_resolution_clock, std::chrono::steady_clock>::type |
mc_rtc::clock is a clock that is always steady and thus suitable for performance measurements
using mc_rtc::duration_ms = typedef std::chrono::duration<double, std::milli> |
using mc_rtc::duration_us = typedef std::chrono::duration<double, std::micro> |
using mc_rtc::LTDLHandlePtr = typedef std::shared_ptr<LTDLHandle> |
using mc_rtc::NodeHandlePtr = typedef std::shared_ptr<ros::NodeHandle> |
using mc_rtc::void_ptr = typedef std::unique_ptr<void, void (*)(void *)> |
|
noexcept |
Returns true if mc_rtc was compiled in debug mode
std::vector<T> mc_rtc::fromVectorOrElement | ( | const mc_rtc::Configuration & | config, |
const std::string & | key | ||
) |
Attempts to convert a read a vector or single element as a vector
Variant of fromVectorOrElement(const mc_rtc::Configuration & config, const std::string & key, const std::vector<T> & defaultVec)
mc_rtc::Configuration::Exception | If the key is not found or the configuration is neither convertible as std::vector<T> or T. |
std::vector<T> mc_rtc::fromVectorOrElement | ( | const mc_rtc::Configuration & | config, |
const std::string & | key, | ||
const std::vector< T > & | defaultVec | ||
) |
Attempts to convert a read a vector or single element as a vector, use default value if it fails.
Example:
The following are valid
T | Type of the element to convert toward |
config | Configuration object from which to convert. This should contain either a vector of elements convertible to T ([T, T, ...]) or a single T element. |
key | Name of the element to read |
void_ptr mc_rtc::make_void_ptr | ( | Args &&... | args | ) |
Creates a new void_ptr holding an object of type T
void_ptr mc_rtc::make_void_ptr | ( | std::unique_ptr< T > | ptr | ) |
Transfer ownership of a unique_ptr<T> to a void_ptr
|
inline |
Returns a new Visual that holds a Box object
|
inline |
Returns a new Visual that holds a Cylinder object
|
inline |
Returns a new Visual that holds a Mesh object
|
inline |
Returns a new Visual that holds a Mesh object
|
inline |
Returns a new Visual that holds a Sphere object
|
inline |
Returns a new Visual that holds a Superellipsoid object
MC_RTC_UTILS_DLLAPI std::string mc_rtc::temp_directory_path | ( | const std::string & | suffix = "" | ) |
Returns the path to the OS temporary directory
suffix | Added (with a path separator) to the returned path |
std::string mc_rtc::type_name | ( | ) |
Return a human-readable type name
Only use for displaying messages as the name is not guaranteed to be the same across compilers and invokation
MC_RTC_UTILS_DLLAPI std::string mc_rtc::user_config_directory_path | ( | const std::string & | suffix = "" | ) |
Returns the path to the user's config directory
On Linux/macOS this returns ${HOME}/.config/mc_rtc folder
On Windows this returns the APPDATA%/mc_rtc folder
suffix | Added (with a path separator) to the returned path |
|
inlineconstexpr |
Get the box data if the visual is a box, throws otherwise
|
inlineconstexpr |
Get the cylinder data if the visual is a cylinder, throws otherwise
|
inlineconstexpr |
Get the mesh data if the visual is a mesh, throws otherwise
|
inlineconstexpr |
Get the sphere data if the visual is a sphere, throws otherwise
|
inlineconstexpr |
Get the superellipsoid data if the visual is a superellipsoid, throws otherwise
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |