Tesseract
Motion Planning Environment
|
#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <tesseract_common/utils.h>
Functions | |
acm | addAllowedCollision ("link1", "link2", "test") |
acm | addAllowedCollision ("link4", "link3", "test") |
acm | addAllowedCollision ("link1", "link3", "test") |
acm | addAllowedCollision ("link1", "cause_duplicate", "test") |
acm | addAllowedCollision ("link10", "link11", "test") |
acm | addAllowedCollision ("dummy", "dummy", "link1") |
EXPECT_TRUE (std::find(results.begin(), results.end(), "link1") !=results.end()) | |
EXPECT_TRUE (std::find(results.begin(), results.end(), "link2") !=results.end()) | |
EXPECT_TRUE (std::find(results.begin(), results.end(), "link3") !=results.end()) | |
EXPECT_TRUE (std::find(results.begin(), results.end(), "link4") !=results.end()) | |
EXPECT_TRUE (std::find(results.begin(), results.end(), "cause_duplicate") !=results.end()) | |
EXPECT_FALSE (std::find(results.begin(), results.end(), "link10") !=results.end()) | |
EXPECT_FALSE (std::find(results.begin(), results.end(), "link11") !=results.end()) | |
EXPECT_FALSE (std::find(results.begin(), results.end(), "dummy") !=results.end()) | |
EXPECT_EQ (results.size(), 5) | |
EXPECT_EQ (results.size(), 6) | |
int | main (int argc, char **argv) |
Variables | |
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | TESSERACT_COMMON_IGNORE_WARNINGS_POP |
Testing getAllowedCollisions. More... | |
std::vector< std::string > | link_names { "link1", "link3", "cause_duplicate" } |
acm addAllowedCollision | ( | "dummy" | , |
"dummy" | , | ||
"link1" | |||
) |
acm addAllowedCollision | ( | "link1" | , |
"cause_duplicate" | , | ||
"test" | |||
) |
acm addAllowedCollision | ( | "link1" | , |
"link2" | , | ||
"test" | |||
) |
acm addAllowedCollision | ( | "link1" | , |
"link3" | , | ||
"test" | |||
) |
acm addAllowedCollision | ( | "link10" | , |
"link11" | , | ||
"test" | |||
) |
acm addAllowedCollision | ( | "link4" | , |
"link3" | , | ||
"test" | |||
) |
EXPECT_EQ | ( | results. | size(), |
5 | |||
) |
EXPECT_EQ | ( | results. | size(), |
6 | |||
) |
EXPECT_FALSE | ( | std::find(results.begin(), results.end(), "dummy") ! | = results.end() | ) |
EXPECT_FALSE | ( | std::find(results.begin(), results.end(), "link10") ! | = results.end() | ) |
EXPECT_FALSE | ( | std::find(results.begin(), results.end(), "link11") ! | = results.end() | ) |
EXPECT_TRUE | ( | std::find(results.begin(), results.end(), "cause_duplicate") ! | = results.end() | ) |
EXPECT_TRUE | ( | std::find(results.begin(), results.end(), "link1") ! | = results.end() | ) |
EXPECT_TRUE | ( | std::find(results.begin(), results.end(), "link2") ! | = results.end() | ) |
EXPECT_TRUE | ( | std::find(results.begin(), results.end(), "link3") ! | = results.end() | ) |
EXPECT_TRUE | ( | std::find(results.begin(), results.end(), "link4") ! | = results.end() | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
std::vector<std::string> link_names { "link1", "link3", "cause_duplicate" } |
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP |
Testing getAllowedCollisions.