file
Helper.hNamespaces
- namespace BipedalLocomotion
- namespace BipedalLocomotion::YarpUtilities
- Helper for YARP library.
Functions
-
template<typename T>auto convertValue(const yarp::os::Value& value) -> T
- Convert a value in a element of type T.
-
template<>auto convertValue<int>(const yarp::os::Value& value) -> int
- Convert a value in a element of type int.
-
template<>auto convertValue<double>(const yarp::os::Value& value) -> double
- Convert a value in a element of type double.
-
template<>auto convertValue<std::string>(const yarp::os::Value& value) -> std::string
- Convert a value in a element of type string.
-
template<>auto convertValue<bool>(const yarp::os::Value& value) -> bool
- Convert a value in a element of type Boolean.
- auto addVectorOfStringToProperty(yarp::os::Property& prop, const std::string& key, const std::vector<std::string>& list) -> bool
- Add a vector of string to a property of a given name.
-
template<typename T>auto getElementFromSearchable(const yarp::os::Searchable& config, const std::string& key, T& number) -> bool
- Extract a double from a searchable object.
-
template<typename T>auto getVectorFromSearchable(const yarp::os::Searchable& config, const std::string& key, T& vector) -> bool
- Extract a vector from searchable.
-
template<>auto getVectorFromSearchable<std::vector<bool>>(const yarp::os::Searchable& config, const std::string& key, std::vector<bool>& vector) -> bool
- Extract an
std::vector<bool>
from searchable. -
template<typename T>void mergeSigVector(yarp::sig::Vector& vector, const T& t)
- Append a scalar to a vector.
-
template<typename T, typename... Args>void mergeSigVector(yarp::sig::Vector& vector, const T& t, const Args&... args)
- Variadic function used to merge several vectors.
-
template<typename... Args>void sendVariadicVector(yarp::os::BufferedPort<yarp::sig::Vector>& port, const Args&... args)
- Send a variadic vector through a yarp buffered port.
- void populateBottleWithStrings(yarp::os::Bottle& bottle, const std::initializer_list<std::string>& strings)
- Add strings to a bottle.