TechTheTime-HighLevel 0.0.1
The high level robot's code using ros2-foxy for the robotics competition(Erobot-2022)
|
#include <script.hpp>
Public Types | |
using | actuator_profile_T = std::function< void(double, int)> |
using | id_profile_T = std::function< void(int)> |
using | move_profile_T = std::function< void(double, double)> |
using | order_profile_T = std::variant< void_profile_T, move_profile_T, actuator_profile_T, id_profile_T > |
using | void_profile_T = std::function< void()> |
Public Member Functions | |
void | angleABS (double, int) |
void | down_servos () |
void | drop_palet_gallery (int) |
void | drop_palet_ground (int) |
void | drop_replic () |
void | drop_statue () |
void | knock_over () |
void | mesure () |
void | move (double, double) |
void | moveREL (double, int) |
void | parse_script (const char *script_file) |
void | pushOrder (std::function< void()>) |
void | reverse_palet (int) |
void | run () |
Script () | |
void | take_palet_ground (int) |
void | take_palet_horizontal (int) |
void | take_palet_vertical (int) |
void | take_statue () |
bool | treat_response (MotionStatusCodes status, std::function< void()> OrderToReinsert, bool reinsert) |
void | up_servos () |
void | wait_for_jumper () |
Private Attributes | |
std::shared_ptr< ActionClient > | commClient |
std::deque< std::function< void()> > | deque_order |
std::unordered_map< std::string, order_profile_T > | orders {} |
using actuator_profile_T = std::function<void(double, int)> |
using id_profile_T = std::function<void(int)> |
using move_profile_T = std::function<void(double, double)> |
using order_profile_T = std::variant< void_profile_T, move_profile_T, actuator_profile_T, id_profile_T > |
using void_profile_T = std::function<void()> |
Script | ( | ) |
void angleABS | ( | double | angle, |
int | readjustment | ||
) |
void down_servos | ( | ) |
void drop_palet_gallery | ( | int | id | ) |
void drop_palet_ground | ( | int | id | ) |
void drop_replic | ( | ) |
void drop_statue | ( | ) |
void knock_over | ( | ) |
void mesure | ( | ) |
void move | ( | double | aim_x, |
double | aim_y | ||
) |
void moveREL | ( | double | distance_rel, |
int | recalage | ||
) |
void parse_script | ( | const char * | script_file | ) |
void pushOrder | ( | std::function< void()> | orderToPush | ) |
void reverse_palet | ( | int | id | ) |
void run | ( | ) |
void take_palet_ground | ( | int | id | ) |
void take_palet_horizontal | ( | int | id | ) |
void take_palet_vertical | ( | int | id | ) |
void take_statue | ( | ) |
bool treat_response | ( | MotionStatusCodes | status, |
std::function< void()> | OrderToReinsert, | ||
bool | reinsert = true |
||
) |
void up_servos | ( | ) |
void wait_for_jumper | ( | ) |
|
private |
|
private |
|
private |