足回り動かすためのライブラリ
Embed:
(wiki syntax)
Show/hide line numbers
robot.hpp
00001 #ifndef take_robot 00002 #define take_robot 00003 00004 class Robot{ 00005 public: 00006 Robot(double corner_wheel_radius,double side_wheel_radius,double c2corner_distance,double c2side_distance):CWR(corner_wheel_radius),SWR(side_wheel_radius),C2CD(c2corner_distance),C2SD(c2side_distance) {}; 00007 void setCWID(int right_front,int right_back,int left_back,int left_front){ 00008 RF = right_front; 00009 RB = right_back; 00010 LB = left_back; 00011 LF = left_front; 00012 } 00013 void setSWID(int front,int right,int back,int left){ 00014 F = front; 00015 R = right; 00016 B = back; 00017 L = left; 00018 } 00019 double CWR,SWR,C2CD,C2SD; 00020 int RF,LF,RB,LB; 00021 int F,R,B,L; 00022 private: 00023 }; 00024 00025 #endif
Generated on Thu Jul 14 2022 14:37:03 by 1.7.2