sitl_test.cpp
Go to the documentation of this file.
1 
6 /*
7  * Copyright 2015 Nuno Marques.
8  *
9  * This file is part of the mavros package and subject to the license terms
10  * in the top-level LICENSE file of the mavros repository.
11  * https://github.com/mavlink/mavros/tree/master/LICENSE.md
12  */
13 
15 #include <ros/console.h>
16 
17 using namespace sitltest;
18 using namespace testsetup;
19 
21 {}
22 
23 void SitlTest::spin(int argc, char *argv[])
24 {
25  if (strcmp(argv[1],"offboard_control") == 0)
26  {
27  ros::init(argc, argv, "offboard_control");
28  testsetup::OffboardControl offboard_control;
29  offboard_control.spin(argc, argv);
30  }
31 
33 }
SitlTest node implementation class.
static void spin(int argc, char *argv[])
Definition: sitl_test.cpp:23
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void spin(int argc, char *argv[])


test_mavros
Author(s): Nuno Marques , Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:42