Skip to content

Instantly share code, notes, and snippets.

@jslee02
Forked from mxgrey/ComponentExplanation.hpp
Created March 23, 2016 17:28
Show Gist options
  • Save jslee02/4c7a3755f3e00ebf226b to your computer and use it in GitHub Desktop.
Save jslee02/4c7a3755f3e00ebf226b to your computer and use it in GitHub Desktop.
class Joint : public virtual ComponentManager
{
public:
struct Properties // First category of Properties
{
std::string mName;
Eigen::Isometry3d mTransformFromParent;
Eigen::Isometry3d mTransformFromChild;
ActuatorType mActuatorType;
};
void setProperties(const Properties& properties)
{
// TODO: Set mProperties and trigger any flags that need to be dirtied
}
// These using-declarations are placed here just to let you know that these functions
// exist in ComponentManager. They would not be needed in the actual implementation.
using ComponentProperties = ComponentManager::Properties; // Second category of Properties
using ComponentManager::setComponentProperties;
protected:
Properties mProperties;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment