waypoints.cpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Includes
10 *****************************************************************************/
11 
12 #include <iostream>
13 #include <gtest/gtest.h>
14 #include <ecl/containers/array.hpp>
15 #include "../../include/ecl/manipulators/waypoint.hpp"
16 
17 /*****************************************************************************
18 ** Using
19 *****************************************************************************/
20 
21 using ecl::Array;
22 using ecl::JointAngles;
23 using ecl::WayPoint;
24 
25 /*****************************************************************************
26 ** Tests
27 *****************************************************************************/
28 
29 TEST(WayPointTests,allEggsInOneBasket) {
30  // Haven't got around to running this properly through gtests yet.
31  SUCCEED();
32 }
33 /*****************************************************************************
34 ** Main program
35 *****************************************************************************/
36 
37 int main(int argc, char **argv) {
38 
39  std::cout << std::endl;
40  std::cout << "***********************************************************" << std::endl;
41  std::cout << " Constructor" << std::endl;
42  std::cout << "***********************************************************" << std::endl;
43  std::cout << std::endl;
44 
45  std::cout << "Manual Construction: " << std::endl;
46  WayPoint<JointAngles> waypoint2(4);
47  waypoint2.name("Raised Position");
48  waypoint2.angles() << 1.57, 1.57, 0.00, 0.00;
49  waypoint2.rates() << 1.0, 1.0, 0.8, 0.8;
50  waypoint2.accelerations() << 0.9, 0.9, 0.6, 0.6;
51  waypoint2.nominalRates(1.0);
52  waypoint2.nominalRates() << 1.0, 1.0, 0.8, 0.8;
53  std::cout << waypoint2 << std::endl;
54 
55  std::cout << "Copy construction" << std::endl;
56  WayPoint<JointAngles> waypoint3(waypoint2);
57  std::cout << waypoint3 << std::endl;
58 
59  std::cout << std::endl;
60  std::cout << "***********************************************************" << std::endl;
61  std::cout << " Passed" << std::endl;
62  std::cout << "***********************************************************" << std::endl;
63  std::cout << std::endl;
64 
65  testing::InitGoogleTest(&argc,argv);
66  return RUN_ALL_TESTS();
67 }
68 
69 
TEST(WayPointTests, allEggsInOneBasket)
Definition: waypoints.cpp:29
Primary template for waypoints.
Definition: waypoint.hpp:46
int main(int argc, char **argv)
Definition: waypoints.cpp:37
Joint angle representations are being used.
Definition: types.hpp:33


ecl_manipulators
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:09:10