|
uwv_dynamic_model
|
The task context provides and requires services. It uses an ExecutionEngine to perform its functions. Essential interfaces are operations, data flow ports and properties. These interfaces have been defined using the oroGen specification. In order to modify the interfaces you should (re)use oroGen and rely on the associated workflow. More...
#include <Task.hpp>
Public Member Functions | |
| Task (std::string const &name="uwv_dynamic_model::Task", ModelSimulator simulator=DYNAMIC_KINEMATIC) | |
| Task (std::string const &name, RTT::ExecutionEngine *engine, ModelSimulator simulator=DYNAMIC_KINEMATIC) | |
| ~Task () | |
| bool | configureHook () |
| The following lines are template definitions for the various state machine. More... | |
| bool | startHook () |
| void | updateHook () |
| void | errorHook () |
| void | stopHook () |
| void | cleanupHook () |
Protected Member Functions | |
| bool | checkInput (const base::LinearAngular6DCommand &control_input) |
| base::samples::RigidBodyState | toRBS (const PoseVelocityState &states) |
| PoseVelocityState | fromRBS (const base::samples::RigidBodyState &states) |
| base::Vector6d | toVector6d (const base::LinearAngular6DCommand &control_input) |
| SecondaryStates | getSecondaryStates (const base::LinearAngular6DCommand &control_input, const AccelerationState &acceleration) |
| void | setUncertainty (base::samples::RigidBodyState &states) |
| void | setSimulator (ModelSimulator simulator) |
| virtual void | handleStates (const base::samples::RigidBodyState &state, const base::LinearAngular6DCommand &control_input) |
| virtual void | setRuntimeState () |
| virtual void | resetStates (void) |
| virtual void | setStates (::base::samples::RigidBodyState const &pose_state) |
Protected Attributes | |
| ModelSimulation * | model_simulation |
| ModelSimulator | simulator |
| base::Time | last_control_input |
Friends | |
| class | TaskBase |
The task context provides and requires services. It uses an ExecutionEngine to perform its functions. Essential interfaces are operations, data flow ports and properties. These interfaces have been defined using the oroGen specification. In order to modify the interfaces you should (re)use oroGen and rely on the associated workflow.
The name of a TaskContext is primarily defined via:
deployment 'deployment_name'
task('custom_task_name','uwv_dynamic_model::Task')
end
It can be dynamically adapted when the deployment is called with a prefix argument.
| Task::Task | ( | std::string const & | name = "uwv_dynamic_model::Task", |
| ModelSimulator | simulator = DYNAMIC_KINEMATIC |
||
| ) |
| Task::Task | ( | std::string const & | name, |
| RTT::ExecutionEngine * | engine, | ||
| ModelSimulator | simulator = DYNAMIC_KINEMATIC |
||
| ) |
| Task::~Task | ( | ) |
|
protected |
Check controlInput for NaN and repeated timestamp.
| void Task::cleanupHook | ( | ) |
| bool Task::configureHook | ( | ) |
The following lines are template definitions for the various state machine.
| void Task::errorHook | ( | ) |
|
protected |
Convert RigidBodyState representation to PoseVelocityState
|
protected |
Get secondary states
|
protectedvirtual |
Do something with data in derived class
| pose | state |
| effort | control_input |
|
protectedvirtual |
Resets the states of the model (position and velocity)
|
protectedvirtual |
Set Runtime component state independently Default: SIMULATING
|
protected |
Sets the simulator used.
|
protectedvirtual |
Set the model's states to pose_state
| pose_state,the | position, orientation and velocities states used to set the model |
|
protected |
Sets the uncertainty value for pose and velocity
| bool Task::startHook | ( | ) |
| void Task::stopHook | ( | ) |
|
protected |
Convert PoseVelocityState representation to RigidBodyState
|
protected |
Convert LinearAngular6DCommand representation to Vector6d
| void Task::updateHook | ( | ) |
|
friend |
|
protected |
|
protected |
|
protected |
1.8.13