36 for(std::size_t i=0 ; i<motor_list.size() ; ++i)
38 encoders_.push_back(std::deque<double>());
39 currents_.push_back(std::deque<double>());
87 static THREAD_FUNCTION_RETURN_TYPE
loop(
void* instance_pointer)
90 return THREAD_FUNCTION_RETURN_VALUE;
std::vector< std::deque< double > > currents_
current data
Definition: const_torque_control.hpp:125
~ConstTorqueControl()
Destroy the ConstTorqueControl object.
Definition: const_torque_control.hpp:53
This namespace is the standard namespace of the package.
Definition: const_torque_control.cpp:12
std::vector< std::deque< double > > control_buffer_
control_buffer_
Definition: const_torque_control.hpp:130
std::vector< std::deque< double > > encoders_
Encoder data.
Definition: const_torque_control.hpp:115
std::vector< std::deque< double > > velocities_
Velocity data.
Definition: const_torque_control.hpp:120
bool stop_loop_
managing the stopping of the loop
Definition: const_torque_control.hpp:105
void stop_loop()
Stop the control and dump the data.
Definition: const_torque_control.cpp:70
ConstTorqueControl(std::vector< SafeMotor_ptr > motor_list)
Construct a new ConstTorqueControl object.
Definition: const_torque_control.hpp:28
void start_loop()
This method is a helper to start the thread loop.
Definition: const_torque_control.hpp:62
std::vector< SafeMotor_ptr > motor_list_
This is list of motors.
Definition: const_torque_control.hpp:77
static THREAD_FUNCTION_RETURN_TYPE loop(void *instance_pointer)
this function is just a wrapper around the actual loop function, such that it can be spawned as a pos...
Definition: const_torque_control.hpp:87
void loop()
this is a simple control loop which runs at a kilohertz.
Definition: const_torque_control.cpp:14
unsigned memory_buffer_size_
memory_buffer_size_ is the max size of the memory buffer.
Definition: const_torque_control.hpp:110
This is a basic PD controller to be used in the demos of this package.
Definition: const_torque_control.hpp:20
real_time_tools::RealTimeThread rt_thread_
This is the real time thread object.
Definition: const_torque_control.hpp:81
std::shared_ptr< blmc_drivers::SafeMotor > SafeMotor_ptr
This is a simple shortcut.
Definition: const_torque_control.hpp:15