emc_system
test_io.cpp
Go to the documentation of this file.
1 #include <gtest/gtest.h>
2 
3 #include <emc/io.h>
4 
5 #include <vector>
6 
7 TEST(Io, SendPath)
8 {
9  emc::IO io;
10 
11  std::vector<double> point;
12  point.push_back(0.0);
13  point.push_back(0.0);
14 
16  path.push_back(point);
17  path.push_back(point);
18 
19  bool res = io.sendPath(path);
20  EXPECT_TRUE(res);
21 }
22 
23 // Run all the tests that were declared with TEST()
24 int main(int argc, char **argv)
25 {
26  testing::InitGoogleTest(&argc, argv);
27  return RUN_ALL_TESTS();
28 }
TEST
TEST(Io, SendPath)
Definition: test_io.cpp:7
vector
emc::IO::sendPath
bool sendPath(std::vector< std::vector< double >> path, std::array< double, 3 > color={0.0, 0.0, 0.0}, double width=0.02, int id=0)
Send a path to be drawn in rviz.
Definition: io.cpp:124
std::vector::push_back
T push_back(T... args)
emc::IO
Definition: io.h:18
io.h
main
int main(int argc, char **argv)
Definition: test_io.cpp:24