def test_common_servicenames(self):
     common = ["roscpp/GetLoggers", "roscpp/SetLoggerLevel",
     "std_srvs/Empty", "nav_msgs/GetMap", "nav_msgs/GetPlan",
     "sensor_msgs/SetCameraInfo", "topic_tools/MuxAdd",
     "topic_tools/MuxSelect", "tf2_msgs/FrameGraph",
     "rospy_tutorials/BadTwoInts", "rospy_tutorials/AddTwoInts"]
     for x in common:
         self.assertNotEqual(ros_loader.get_service_class(x), None)
         self.assertNotEqual(ros_loader.get_service_instance(x), None)
         self.assertNotEqual(ros_loader.get_service_request_instance(x), None)
         self.assertNotEqual(ros_loader.get_service_response_instance(x), None)
         self.assertEqual(x, ros_loader.get_service_instance(x)._type)
Esempio n. 2
0
 def test_common_servicenames(self):
     common = ["roscpp/GetLoggers", "roscpp/SetLoggerLevel",
               "std_srvs/Empty", "nav_msgs/GetMap", "nav_msgs/GetPlan",
               "sensor_msgs/SetCameraInfo", "topic_tools/MuxAdd",
               "topic_tools/MuxSelect", "tf2_msgs/FrameGraph",
               "rospy_tutorials/BadTwoInts", "rospy_tutorials/AddTwoInts"]
     for x in common:
         self.assertNotEqual(ros_loader.get_service_class(x), None)
         self.assertNotEqual(ros_loader.get_service_instance(x), None)
         self.assertNotEqual(
             ros_loader.get_service_request_instance(x), None)
         self.assertNotEqual(
             ros_loader.get_service_response_instance(x), None)
         self.assertEqual(x, ros_loader.get_service_instance(x)._type)
 def test_irregular_servicenames(self):
     irregular = ["roscpp//GetLoggers", "/roscpp/GetLoggers/",
     "/roscpp/GetLoggers", "//roscpp/GetLoggers", "/roscpp//GetLoggers",
     "roscpp/GetLoggers//", "/roscpp/GetLoggers//", "roscpp/GetLoggers/",
     "roscpp//GetLoggers//"]
     for x in irregular:
         self.assertNotEqual(ros_loader.get_service_class(x), None)
         self.assertNotEqual(ros_loader.get_service_instance(x), None)
         self.assertNotEqual(ros_loader.get_service_request_instance(x), None)
         self.assertNotEqual(ros_loader.get_service_response_instance(x), None)
Esempio n. 4
0
 def test_irregular_servicenames(self):
     irregular = ["roscpp//GetLoggers", "/roscpp/GetLoggers/",
                  "/roscpp/GetLoggers", "//roscpp/GetLoggers", "/roscpp//GetLoggers",
                  "roscpp/GetLoggers//", "/roscpp/GetLoggers//", "roscpp/GetLoggers/",
                  "roscpp//GetLoggers//"]
     for x in irregular:
         self.assertNotEqual(ros_loader.get_service_class(x), None)
         self.assertNotEqual(ros_loader.get_service_instance(x), None)
         self.assertNotEqual(
             ros_loader.get_service_request_instance(x), None)
         self.assertNotEqual(
             ros_loader.get_service_response_instance(x), None)