SITL test node implementation.
More...
SITL test node implementation.
SITL tests setup.
Offboard controller tester.
Tests offboard position, velocity and acceleration control
Enumerator |
---|
POSITION |
|
VELOCITY |
|
ACCELERATION |
|
Definition at line 36 of file offboard_control.h.
Eigen::Vector3d testsetup::OffboardControl::circle_shape |
( |
int |
angle | ) |
|
|
inlineprivate |
Defines circle path.
- Todo:
- Give possibility to user define amplitude of movement (circle radius)
Definition at line 230 of file offboard_control.h.
Eigen::Vector3d testsetup::OffboardControl::eight_shape |
( |
int |
angle | ) |
|
|
inlineprivate |
Defines Gerono lemniscate path.
- Todo:
- Give possibility to user define amplitude of movement (vertical tangent size)
Definition at line 242 of file offboard_control.h.
Eigen::Vector3d testsetup::OffboardControl::ellipse_shape |
( |
int |
angle | ) |
|
|
inlineprivate |
Defines ellipse path.
- Todo:
- Give possibility to user define amplitude of movement (tangent sizes)
Definition at line 254 of file offboard_control.h.
void testsetup::OffboardControl::init |
( |
| ) |
|
|
inline |
Setup of the test conditions
- Note
- some of these are based on values defaulted @ https://bitbucket.org/enddl22/ardrone_side_project/ tweaks to them so to get a better velocity response are welcomed!
Setpoint control mode selector
Available modes:
- position
- velocity
- acceleration
Setpoint path shape selector
Available shapes:
- square
- circle
- eight
- ellipse (in 3D space)
Definition at line 59 of file offboard_control.h.
void testsetup::OffboardControl::local_pos_cb |
( |
const geometry_msgs::PoseStampedConstPtr & |
msg | ) |
|
|
inlineprivate |
testsetup::OffboardControl::OffboardControl |
( |
| ) |
|
|
inline |
Eigen::Vector3d testsetup::OffboardControl::pos_setpoint |
( |
int |
tr_x, |
|
|
int |
tr_y, |
|
|
int |
tr_z |
|
) |
| |
|
inlineprivate |
Defines single position setpoint.
- Todo:
- Give possibility to user define amplitude of movement (square corners coordinates)
Definition at line 222 of file offboard_control.h.
void SitlTest::spin |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
void testsetup::OffboardControl::spin |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
inline |
testsetup::TestSetup::TestSetup |
( |
| ) |
|
|
inline |
std::array<double, 100> testsetup::OffboardControl::threshold_definition |
( |
| ) |
|
|
inlineprivate |
Gaussian noise generator for accepted position threshold.
Definition at line 539 of file offboard_control.h.
void testsetup::OffboardControl::wait_and_move |
( |
geometry_msgs::PoseStamped |
target | ) |
|
|
inlineprivate |
Defines the accepted threshold to the destination/target position before moving to the next setpoint.
Definition at line 493 of file offboard_control.h.
sitltest::SitlTest::~SitlTest |
( |
| ) |
|
|
inline |
testsetup::TestSetup::~TestSetup |
( |
| ) |
|
|
inline |
Eigen::Vector3d testsetup::OffboardControl::current |
|
private |
double testsetup::OffboardControl::linvel_d_gain |
|
private |
double testsetup::OffboardControl::linvel_i_gain |
|
private |
double testsetup::OffboardControl::linvel_i_max |
|
private |
double testsetup::OffboardControl::linvel_i_min |
|
private |
double testsetup::OffboardControl::linvel_p_gain |
|
private |
geometry_msgs::PoseStamped testsetup::OffboardControl::localpos |
|
private |
control_mode testsetup::OffboardControl::mode |
|
private |
int testsetup::TestSetup::num_of_tests |
int testsetup::OffboardControl::num_of_tests |
|
private |
geometry_msgs::PoseStamped testsetup::OffboardControl::ps |
|
private |
double testsetup::TestSetup::rate |
double testsetup::OffboardControl::rate |
|
private |
path_shape testsetup::OffboardControl::shape |
|
private |
TestSetup testsetup::OffboardControl::test |
|
private |
std::array<double, 100> testsetup::OffboardControl::threshold |
|
private |
bool testsetup::TestSetup::use_pid |
bool testsetup::OffboardControl::use_pid |
|
private |
geometry_msgs::TwistStamped testsetup::OffboardControl::vs |
|
private |
double testsetup::OffboardControl::yawrate_d_gain |
|
private |
double testsetup::OffboardControl::yawrate_i_gain |
|
private |
double testsetup::OffboardControl::yawrate_i_max |
|
private |
double testsetup::OffboardControl::yawrate_i_min |
|
private |
double testsetup::OffboardControl::yawrate_p_gain |
|
private |