iCub-main
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
WorkingThread Class Reference
+ Inheritance diagram for WorkingThread:

Public Member Functions

 WorkingThread (int period=100)
 
void attachPosPort (scriptPosPort *p)
 
bool threadInit ()
 
void run ()
 
 WorkingThread (double period=5)
 
 ~WorkingThread ()
 
void attachRobotDriver (robotDriver *p)
 
bool threadInit ()
 
bool execute_joint_command (int action_id)
 
void compute_and_send_command (int action_id)
 
void run ()
 

Public Attributes

robotDriverdriver
 
action_class actions
 
mutex mtx
 
BufferedPort< Bottle > port_command_out
 
BufferedPort< Bottle > port_command_joints
 
bool enable_execute_joint_command
 
double start_time
 

Detailed Description

Definition at line 380 of file main.cpp.

Constructor & Destructor Documentation

◆ WorkingThread() [1/2]

WorkingThread::WorkingThread ( int  period = 100)
inline

Definition at line 385 of file main.cpp.

◆ WorkingThread() [2/2]

WorkingThread::WorkingThread ( double  period = 5)
inline

Definition at line 176 of file main.cpp.

◆ ~WorkingThread()

WorkingThread::~WorkingThread ( )
inline

Definition at line 184 of file main.cpp.

Member Function Documentation

◆ attachPosPort()

void WorkingThread::attachPosPort ( scriptPosPort p)
inline

Definition at line 388 of file main.cpp.

◆ attachRobotDriver()

void WorkingThread::attachRobotDriver ( robotDriver p)
inline

Definition at line 192 of file main.cpp.

◆ compute_and_send_command()

void WorkingThread::compute_and_send_command ( int  action_id)
inline

Definition at line 219 of file main.cpp.

◆ execute_joint_command()

bool WorkingThread::execute_joint_command ( int  action_id)
inline

Definition at line 204 of file main.cpp.

◆ run() [1/2]

void WorkingThread::run ( )
inline

Definition at line 401 of file main.cpp.

◆ run() [2/2]

void WorkingThread::run ( )
inline

Definition at line 272 of file main.cpp.

◆ threadInit() [1/2]

bool WorkingThread::threadInit ( )
inline

Definition at line 394 of file main.cpp.

◆ threadInit() [2/2]

bool WorkingThread::threadInit ( )
inline

Definition at line 197 of file main.cpp.

Member Data Documentation

◆ actions

action_class WorkingThread::actions

Definition at line 169 of file main.cpp.

◆ driver

robotDriver* WorkingThread::driver

Definition at line 168 of file main.cpp.

◆ enable_execute_joint_command

bool WorkingThread::enable_execute_joint_command

Definition at line 173 of file main.cpp.

◆ mtx

mutex WorkingThread::mtx

Definition at line 170 of file main.cpp.

◆ port_command_joints

BufferedPort<Bottle> WorkingThread::port_command_joints

Definition at line 172 of file main.cpp.

◆ port_command_out

BufferedPort<Bottle> WorkingThread::port_command_out

Definition at line 171 of file main.cpp.

◆ start_time

double WorkingThread::start_time

Definition at line 174 of file main.cpp.


The documentation for this class was generated from the following files: