10 #include <Atoms/Globals.h>
11 #include <Atoms/Locomotion.h>
82 void registerLoaderCallback(std::function<
Locomotion(
const char*)>& callback);
98 typedef std::map<std::string, LocomotionPtr> LocomotionsMap;
104 LocomotionsMap m_locomotionsMap;
106 std::function<
Locomotion(
const char*)> m_loaderCallback;
108 mutable std::mutex m_mutex;
Animation clip.
Definition: Locomotion.h:34
Locomotions manager.
Definition: Locomotions.h:23
static Locomotions & instance()
Singleton access.
std::vector< std::string > locomotionNames()
Get all locomotion names.
LocomotionPtr locomotion(const std::string &name)
Return a locomotion.
LocomotionCPtr locomotion(const std::string &name) const
Return a locomotion.
void addLocomotion(const std::string &name, const Atoms::Locomotion &locomotion, bool replace=true)
Add a locomotion to the map.
void clear()
Remove all locomotions.
void addLocomotion(const std::string &name, LocomotionPtr &locomotionPtr, bool replace=true)
Add a locomotion to the map.
unsigned int numLocomotions()
Get number of locomotions.
void removeLocomotion(const std::string &name)
Remove a locomotion from the map.
bool locomotionExists(const std::string &name)
Check if a locomotion exists.
Atoms namespace.
Definition: Agent.h:29
AtomsPtr< Locomotion > LocomotionPtr
locomotion pointer
Definition: Locomotion.h:84
AtomsPtr< const Locomotion > LocomotionCPtr
locomotion const pointer
Definition: Locomotion.h:86