|
bipedal locomotion framework
A suite of libraries for achieving bipedal locomotion on humanoid robots
|
Helper for YARP library. More...
Classes | |
| class | VectorsCollectionClient |
| VectorsCollectionClient is a class that implements that allows to receive a VectorsCollection from a VectorsCollectionServer. More... | |
| class | VectorsCollectionServer |
| VectorsCollectionServer is a class that implements the VectorsCollectionMetadataService. More... | |
Functions | |
| template<typename T > | |
| T | convertValue (const yarp::os::Value &value) |
| Convert a value in a element of type T. More... | |
| template<> | |
| int | convertValue< int > (const yarp::os::Value &value) |
| Convert a value in a element of type int. More... | |
| template<> | |
| double | convertValue< double > (const yarp::os::Value &value) |
| Convert a value in a element of type double. More... | |
| template<> | |
| std::string | convertValue< std::string > (const yarp::os::Value &value) |
| Convert a value in a element of type string. More... | |
| template<> | |
| bool | convertValue< bool > (const yarp::os::Value &value) |
| Convert a value in a element of type Boolean. More... | |
| bool | addVectorOfStringToProperty (yarp::os::Property &prop, const std::string &key, const std::vector< std::string > &list) |
| Add a vector of string to a property of a given name. More... | |
| template<typename T > | |
| bool | getElementFromSearchable (const yarp::os::Searchable &config, const std::string &key, T &number) |
| Extract a double from a searchable object. More... | |
| template<typename T > | |
| bool | getVectorFromSearchable (const yarp::os::Searchable &config, const std::string &key, T &vector) |
| Extract a vector from searchable. More... | |
| template<> | |
| bool | getVectorFromSearchable< std::vector< bool > > (const yarp::os::Searchable &config, const std::string &key, std::vector< bool > &vector) |
Extract an std::vector<bool> from searchable. More... | |
| template<typename T > | |
| void | mergeSigVector (yarp::sig::Vector &vector, const T &t) |
| Append a scalar to a vector. More... | |
| template<typename T , typename... Args> | |
| void | mergeSigVector (yarp::sig::Vector &vector, const T &t, const Args &... args) |
| Variadic function used to merge several vectors. More... | |
| template<typename... Args> | |
| void | sendVariadicVector (yarp::os::BufferedPort< yarp::sig::Vector > &port, const Args &... args) |
| Send a variadic vector through a yarp buffered port. More... | |
| void | populateBottleWithStrings (yarp::os::Bottle &bottle, const std::initializer_list< std::string > &strings) |
| Add strings to a bottle. More... | |
Helper for YARP library.
| T BipedalLocomotion::YarpUtilities::convertValue | ( | const yarp::os::Value & | value | ) |
Convert a value in a element of type T.
| value | the value that will be converted |
| T | return type |
| int BipedalLocomotion::YarpUtilities::convertValue< int > | ( | const yarp::os::Value & | value | ) |
Convert a value in a element of type int.
| value | the value that will be converted |
| double BipedalLocomotion::YarpUtilities::convertValue< double > | ( | const yarp::os::Value & | value | ) |
Convert a value in a element of type double.
| value | the value that will be converted |
| std::string BipedalLocomotion::YarpUtilities::convertValue< std::string > | ( | const yarp::os::Value & | value | ) |
Convert a value in a element of type string.
| value | the value that will be converted |
| bool BipedalLocomotion::YarpUtilities::convertValue< bool > | ( | const yarp::os::Value & | value | ) |
Convert a value in a element of type Boolean.
| value | the value that will be converted |
| bool BipedalLocomotion::YarpUtilities::addVectorOfStringToProperty | ( | yarp::os::Property & | prop, |
| const std::string & | key, | ||
| const std::vector< std::string > & | list | ||
| ) |
Add a vector of string to a property of a given name.
| prop | yarp property; |
| key | is the key; |
| list | is the vector of strings that will be added into the property. |
| bool BipedalLocomotion::YarpUtilities::getElementFromSearchable | ( | const yarp::os::Searchable & | config, |
| const std::string & | key, | ||
| T & | number | ||
| ) |
Extract a double from a searchable object.
| config | is the searchable object; |
| key | the name to check for; |
| number | is the double. |
| bool BipedalLocomotion::YarpUtilities::getVectorFromSearchable | ( | const yarp::os::Searchable & | config, |
| const std::string & | key, | ||
| T & | vector | ||
| ) |
Extract a vector from searchable.
| config | is the searchable object; |
| key | the name to check for; |
| vector | a vector. |
| bool BipedalLocomotion::YarpUtilities::getVectorFromSearchable< std::vector< bool > > | ( | const yarp::os::Searchable & | config, |
| const std::string & | key, | ||
| std::vector< bool > & | vector | ||
| ) |
Extract an std::vector<bool> from searchable.
The specialization is required because vector.data() is not defined when vector is an std::vector<bool>
| config | is the searchable object; |
| key | the name to check for; |
| vector | a std::vector<bool> |
| void BipedalLocomotion::YarpUtilities::mergeSigVector | ( | yarp::sig::Vector & | vector, |
| const T & | t | ||
| ) |
Append a scalar to a vector.
vector = [vector, t]
| vector | the original vector. The new elements will be add at the end of this vector; |
| t | is a container or a scalar. If t is a container it has to be an iterable object (the element has the methods T::begin() and T::end() or the operator[] has to be defined |
| void BipedalLocomotion::YarpUtilities::mergeSigVector | ( | yarp::sig::Vector & | vector, |
| const T & | t, | ||
| const Args &... | args | ||
| ) |
Variadic function used to merge several vectors.
| vector | the original vector. The new elements will be add at the end of this vector; |
| t | is a container or a scalar. If t is a container it has to be an iterable object (the element has the methods T::begin() and T::end()) or the operator[] has to be defined |
| args | list containing all the vector that will be merged. |
| void BipedalLocomotion::YarpUtilities::sendVariadicVector | ( | yarp::os::BufferedPort< yarp::sig::Vector > & | port, |
| const Args &... | args | ||
| ) |
Send a variadic vector through a yarp buffered port.
| port | is a Yarp buffered port |
| args | list containing all the vector that will be send. |
| void BipedalLocomotion::YarpUtilities::populateBottleWithStrings | ( | yarp::os::Bottle & | bottle, |
| const std::initializer_list< std::string > & | strings | ||
| ) |
Add strings to a bottle.
| bottle | this bottle will be filled. |
| strings | list containing all the string. |