Inherit from this class by specifying a ModelType that is inherited from RigidModel to build your own model provider.
More...
#include <model/RigidModelProvider.h>
template<typename ModelType>
class mira::model::RigidModelProvider< ModelType >
Inherit from this class by specifying a ModelType that is inherited from RigidModel to build your own model provider.
◆ ModelTypePtr
◆ reflect() [1/2]
void reflect |
( |
Reflector & |
r | ) |
|
|
inline |
Reflect method for serialization.
◆ getRigidModel()
◆ publishJoint()
void publishJoint |
( |
const std::string & |
name, |
|
|
float |
value, |
|
|
Time const & |
t = Time::now() |
|
) |
| |
|
inline |
Publishes the state of the joint with the given name.
See RigidModel::publishJoint() for details.
- Exceptions
-
XInvalidConfig | if no model is loaded |
◆ publishTransforms()
void publishTransforms |
( |
const std::string & |
ns, |
|
|
Time const & |
t = Time::now() |
|
) |
| |
|
inline |
Resolves all transform frames, adds transform links and publishes all transformations of the loaded model using the given namespace.
- Parameters
-
ns | The namespace of the model |
t | An optional timestamp of the (initial) transformation states |
◆ reflect() [2/2]
void reflect |
( |
RPCServer::RPCReflector & |
r | ) |
|
|
inlineinherited |
◆ getResourceFile()
virtual Buffer<uint8> getResourceFile |
( |
const std::string & |
filename, |
|
|
bool |
compress |
|
) |
| |
|
inlinevirtualinherited |
Return the content of a resource file (may be required to display the model).
◆ mModel
The documentation for this class was generated from the following file: