|
bipedal locomotion framework
A suite of libraries for achieving bipedal locomotion on humanoid robots
|
Parameters handler interface. More...
#include <ParametersHandler/include/BipedalLocomotion/ParametersHandler/StdImplementation.h>
Public Member Functions | |
| StdImplementation (const std::unordered_map< std::string, std::any > &map) | |
| Constructor. More... | |
| StdImplementation ()=default | |
| Constructor. | |
| void | set (const std::unordered_map< std::string, std::any > &searchable) |
| Set the handler from an object. More... | |
| bool | getParameter (const std::string ¶meterName, int ¶meter) const final |
| Get a parameter [int]. More... | |
| bool | getParameter (const std::string ¶meterName, double ¶meter) const final |
| Get a parameter [double]. More... | |
| bool | getParameter (const std::string ¶meterName, std::string ¶meter) const final |
| Get a parameter [std::string]. More... | |
| bool | getParameter (const std::string ¶meterName, bool ¶meter) const final |
| Get a parameter [bool]. More... | |
| bool | getParameter (const std::string ¶meterName, std::chrono::nanoseconds ¶meter) const final |
| Get a parameter [std::chrono::nanoseconds]. More... | |
| bool | getParameter (const std::string ¶meterName, std::vector< bool > ¶meter) const final |
| Get a parameter [std::vector<bool>]. More... | |
| bool | getParameter (const std::string ¶meterName, GenericContainer::Vector< int >::Ref parameter) const final |
| Get a parameter [GenericContainer::Vector<int>]. More... | |
| bool | getParameter (const std::string ¶meterName, GenericContainer::Vector< double >::Ref parameter) const final |
| Get a parameter [GenericContainer::Vector<double>]. More... | |
| bool | getParameter (const std::string ¶meterName, GenericContainer::Vector< std::string >::Ref parameter) const final |
| Get a parameter [GenericContainer::Vector<std::string>]. More... | |
| bool | getParameter (const std::string ¶meterName, GenericContainer::Vector< std::chrono::nanoseconds >::Ref parameter) const final |
| Get a parameter [GenericContainer::Vector<std::chrono::nanoseconds>]. More... | |
| void | setParameter (const std::string ¶meterName, const int ¶meter) final |
| Set a parameter [int]. More... | |
| void | setParameter (const std::string ¶meterName, const double ¶meter) final |
| Set a parameter [double]. More... | |
| void | setParameter (const std::string ¶meterName, const std::string ¶meter) final |
| Set a parameter [std::string]. More... | |
| void | setParameter (const std::string ¶meterName, const char *parameter) final |
| Set a parameter [const char*]. More... | |
| void | setParameter (const std::string ¶meterName, const bool ¶meter) final |
| Set a parameter [bool]. More... | |
| void | setParameter (const std::string ¶meterName, const std::chrono::nanoseconds ¶meter) final |
| Set a parameter [std::chrono::nanoseconds]. More... | |
| void | setParameter (const std::string ¶meterName, const std::vector< bool > ¶meter) final |
| Set a parameter [std::vector<bool>]. More... | |
| void | setParameter (const std::string ¶meterName, const GenericContainer::Vector< const int >::Ref parameter) final |
| Set a parameter [GenericContainer::Vector<int>]. More... | |
| void | setParameter (const std::string ¶meterName, const GenericContainer::Vector< const double >::Ref parameter) final |
| Set a parameter [GenericContainer::Vector<double>]. More... | |
| void | setParameter (const std::string ¶meterName, const GenericContainer::Vector< const std::string >::Ref parameter) final |
| Set a parameter [GenericContainer::Vector<std::string>]. More... | |
| void | setParameter (const std::string ¶meterName, const GenericContainer::Vector< const std::chrono::nanoseconds >::Ref parameter) final |
| Get a parameter [GenericContainer::Vector<std::chrono::nanoseconds>]. More... | |
| weak_ptr | getGroup (const std::string &name) const final |
| Get a Group from the handler. More... | |
| bool | setGroup (const std::string &name, shared_ptr newGroup) final |
| Set a new group on the handler. More... | |
| std::string | toString () const final |
| Return a standard text representation of the content of the object. More... | |
| bool | isEmpty () const final |
| Check if the handler contains parameters. More... | |
| void | clear () final |
| Clears the handler from all the parameters. | |
| shared_ptr | clone () const final |
| Clone the content of the content. More... | |
Public Member Functions inherited from BipedalLocomotion::ParametersHandler::IParametersHandler | |
| virtual | ~IParametersHandler ()=default |
| Destructor. | |
Additional Inherited Members | |
Public Types inherited from BipedalLocomotion::ParametersHandler::IParametersHandler | |
| using | unique_ptr = std::unique_ptr< IParametersHandler > |
| using | shared_ptr = std::shared_ptr< IParametersHandler > |
| using | weak_ptr = std::weak_ptr< IParametersHandler > |
Parameters handler interface.
|
inline |
Constructor.
| map | reference to a map object. The object is copied inside the Handler |
| void StdImplementation::set | ( | const std::unordered_map< std::string, std::any > & | searchable | ) |
Set the handler from an object.
| object | The object to copy |
|
finalvirtual |
Get a parameter [int].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [double].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [std::string].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [bool].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [std::chrono::nanoseconds].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [std::vector<bool>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [GenericContainer::Vector<int>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [GenericContainer::Vector<double>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [GenericContainer::Vector<std::string>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [GenericContainer::Vector<std::chrono::nanoseconds>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [int].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [double].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [std::string].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [const char*].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [bool].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [std::chrono::nanoseconds].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [std::vector<bool>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [GenericContainer::Vector<int>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [GenericContainer::Vector<double>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a parameter [GenericContainer::Vector<std::string>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a parameter [GenericContainer::Vector<std::chrono::nanoseconds>].
| parameterName | name of the parameter |
| parameter | parameter |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Get a Group from the handler.
| name | name of the group |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Set a new group on the handler.
| name | name of the group |
| newGroup | shared pointer to the new group |
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Return a standard text representation of the content of the object.
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Check if the handler contains parameters.
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.
|
finalvirtual |
Clone the content of the content.
Implements BipedalLocomotion::ParametersHandler::IParametersHandler.