16 #include <gtest/gtest.h> 29 std::string xml_filepath =
ros::package::getPath(
"rostate_machine") + std::string(
"/test/data/test_state_machine.xml");
30 std::ifstream ifs(xml_filepath);
31 std::string description;
34 while (getline(ifs, line))
36 description += line +
"\n";
47 int main(
int argc,
char **argv){
48 testing::InitGoogleTest(&argc, argv);
49 return RUN_ALL_TESTS();
State Machine Class using Boost::Graph.
bool tryTransition(std::string trigger_event_name)
Try transition from trigger event.
std::string getCurrentState()
Function getting current state name.
TEST(TestSuite, testCase1)
ROSLIB_DECL std::string getPath(const std::string &package_name)
State Machine Library using Boost::Graph.
int main(int argc, char **argv)