Decision Module
1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
|
Go to the documentation of this file.
17 #ifndef ROBORTS_DETECTION_GIMBAL_CONTROL_H
18 #define ROBORTS_DETECTION_GIMBAL_CONTROL_H
22 #include <geometry_msgs/Point32.h>
26 const double PI = 3.1415926535;
53 float GetPitch(
float x,
float y,
float v);
65 void Init(
float x,
float y,
float z,
float pitch,
float yaw,
float init_v,
74 void Transform(geometry_msgs::Point32 &postion,
float &pitch,
float &yaw);
92 #endif //ROBORTS_DETECTION_GIMBAL_CONTROL_H
float GetPitch(float x, float y, float v)
Get the gimbal control angle.
Definition: gimbal_control.cpp:61
void Init(float x, float y, float z, float pitch, float yaw, float init_v, float init_k)
Init the Transformation matrix from camera to gimbal //TODO: write in ros tf.
Definition: gimbal_control.cpp:41
float init_k_
Definition: gimbal_control.h:101
const double PI
Definition: gimbal_control.h:41
float offset_pitch_
Rotation matrix unit: degree.
Definition: gimbal_control.h:96
float init_v_
Initial value.
Definition: gimbal_control.h:100
float offset_yaw_
Definition: gimbal_control.h:97
Definition: behavior_test_node.h:14
float BulletModel(float x, float v, float angle)
Calculate the actual y value with air resistance.
Definition: gimbal_control.cpp:53
const float GRAVITY
Definition: gimbal_control.h:42
geometry_msgs::Point32 offset_
Definition: gimbal_control.h:94
void Transform(geometry_msgs::Point32 &postion, float &pitch, float &yaw)
Get the gimbal control info.
Definition: gimbal_control.cpp:80