Choreonoid  1.8
JointSpaceConfigurationHandler.h
Go to the documentation of this file.
1 #ifndef CNOID_BODY_JOINT_SPACE_CONFIGURATION_HANDLER_H
2 #define CNOID_BODY_JOINT_SPACE_CONFIGURATION_HANDLER_H
3 
4 #include <vector>
5 #include <string>
6 
7 namespace cnoid {
8 
13 {
14 public:
15  virtual int getNumConfigurationTypes() const = 0;
16  virtual int getConfigurationTypeId(int index) const = 0;
17 
18  // This function returns the unique id that can reproduce the current state
19  virtual int getCurrentConfigurationType() const = 0;
20 
21  // This function returns a set of IDs corresponding to the current state
22  virtual std::vector<int> getCurrentConfigurationTypes(double precision = 1.0e-6) const = 0;
23 
24  virtual std::vector<std::string> getConfigurationTargetNames() const = 0;
25  virtual std::vector<std::string> getConfigurationStateNames(int id) const = 0;
26  virtual void setPreferredConfigurationType(int id) = 0;
27  virtual void resetPreferredConfigurationType() = 0;
28 };
29 
30 }
31 
32 #endif
cnoid::JointSpaceConfigurationHandler::getCurrentConfigurationType
virtual int getCurrentConfigurationType() const =0
cnoid::JointSpaceConfigurationHandler
Definition: JointSpaceConfigurationHandler.h:12
cnoid::JointSpaceConfigurationHandler::getConfigurationTypeId
virtual int getConfigurationTypeId(int index) const =0
cnoid::JointSpaceConfigurationHandler::setPreferredConfigurationType
virtual void setPreferredConfigurationType(int id)=0
cnoid::JointSpaceConfigurationHandler::resetPreferredConfigurationType
virtual void resetPreferredConfigurationType()=0
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::JointSpaceConfigurationHandler::getConfigurationTargetNames
virtual std::vector< std::string > getConfigurationTargetNames() const =0
cnoid::JointSpaceConfigurationHandler::getNumConfigurationTypes
virtual int getNumConfigurationTypes() const =0
cnoid::JointSpaceConfigurationHandler::getCurrentConfigurationTypes
virtual std::vector< int > getCurrentConfigurationTypes(double precision=1.0e-6) const =0
cnoid::JointSpaceConfigurationHandler::getConfigurationStateNames
virtual std::vector< std::string > getConfigurationStateNames(int id) const =0