Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
Processor Class Reference

#include <processor.h>

Collaboration diagram for Processor:

Public Member Functions

 Processor (Processor &&)=default
 
 Processor (const Processor &)=default
 
Processoroperator= (Processor &&)=default
 
Processoroperator= (const Processor &)=default
 
 ~Processor ()
 
int init (uint32_t dt_millis)
 
Vec3< float > control (Vec3< float > state, Vec3< float > vel_from_base, Vec3< float > last_vel, State_Vars *&robot_state_vars, uint32_t dt_millis)
 

Static Public Member Functions

static Processorget_Instance (State_Sensor *sen)
 

Private Member Functions

 Processor ()
 
void process (Vec3< float > state, State_Vars *&robot_state_vars)
 
Vec3< float > auto_control (Vec3< float > state, Vec3< float > vel_from_base, uint32_t dt_millis)
 
Vec3< float > manual_control (JoyStick_Command &joy_cmd, Field id)
 
void reset_Position (State_Vars *&robot_state_vars)
 
void throw_Shagai (bool throw_shagai)
 
void grip_Shagai (bool grip_shagai)
 
void extend_Arm ()
 
void pass_Gerege (bool pass)
 
void actuate_Arm (bool act_arm)
 
void actuate_Platform (bool act_arm)
 
void retrieve_Arm ()
 
void rotate_Gerege ()
 
void send_ThrowCommand (bool grip, bool throw_shg, bool act_arm)
 
void update_State (uint8_t bounds)
 

Private Attributes

Robo_Statescurr_state_
 
State_Sensorsensor_
 
Throwingthrower_
 
JoyStickjoy_stick_
 
bool is_first_
 
Vec3< float > first_state_
 

Constructor & Destructor Documentation

◆ Processor() [1/3]

Processor::Processor ( Processor &&  )
default

◆ Processor() [2/3]

Processor::Processor ( const Processor )
default

◆ ~Processor()

Processor::~Processor ( )
inline

◆ Processor() [3/3]

Processor::Processor ( )
inlineprivate

Member Function Documentation

◆ actuate_Arm()

void Processor::actuate_Arm ( bool  act_arm)
private

◆ actuate_Platform()

void Processor::actuate_Platform ( bool  act_arm)
private

◆ auto_control()

Vec3< float > Processor::auto_control ( Vec3< float >  state,
Vec3< float >  vel_from_base,
uint32_t  dt_millis 
)
private
Here is the call graph for this function:

◆ control()

Vec3< float > Processor::control ( Vec3< float >  state,
Vec3< float >  vel_from_base,
Vec3< float >  last_vel,
State_Vars *&  robot_state_vars,
uint32_t  dt_millis 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extend_Arm()

void Processor::extend_Arm ( )
private

◆ get_Instance()

Processor & Processor::get_Instance ( State_Sensor sen)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ grip_Shagai()

void Processor::grip_Shagai ( bool  grip_shagai)
private

◆ init()

int Processor::init ( uint32_t  dt_millis)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ manual_control()

Vec3< float > Processor::manual_control ( JoyStick_Command joy_cmd,
Field  id 
)
private

◆ operator=() [1/2]

Processor& Processor::operator= ( Processor &&  )
default

◆ operator=() [2/2]

Processor& Processor::operator= ( const Processor )
default

◆ pass_Gerege()

void Processor::pass_Gerege ( bool  pass)
private

◆ process()

void Processor::process ( Vec3< float >  state,
State_Vars *&  robot_state_vars 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_Position()

void Processor::reset_Position ( State_Vars *&  robot_state_vars)
private
Here is the call graph for this function:

◆ retrieve_Arm()

void Processor::retrieve_Arm ( )
private

◆ rotate_Gerege()

void Processor::rotate_Gerege ( )
private

◆ send_ThrowCommand()

void Processor::send_ThrowCommand ( bool  grip,
bool  throw_shg,
bool  act_arm 
)
private
Here is the call graph for this function:

◆ throw_Shagai()

void Processor::throw_Shagai ( bool  throw_shagai)
private

◆ update_State()

void Processor::update_State ( uint8_t  bounds)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ curr_state_

Robo_States* Processor::curr_state_
private

◆ first_state_

Vec3<float> Processor::first_state_
private

◆ is_first_

bool Processor::is_first_
private

◆ joy_stick_

JoyStick* Processor::joy_stick_
private

◆ sensor_

State_Sensor* Processor::sensor_
private

◆ thrower_

Throwing* Processor::thrower_
private

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