Пример #1
0
    def test_get_rules(self):
        from rosdistro import get_rules
        distros = load_distros_legacy()
        # boxturtle tests
        for t in ['cturtle']:
            boxturtle = distros['boxturtle']
            self.assertEquals(boxturtle_ros_rules, get_rules(boxturtle, 'ros'))
            # test aliasing of ROS == ros. Not sure why that code is
            # in there, but add a tripwire to investigate this if its
            # ever removed.
            self.assertEquals(get_rules(boxturtle, 'ros'),
                              get_rules(boxturtle, 'ROS'))

            for s in [
                    'common', 'navigation', 'simulator_stage', 'visualization',
                    'visualization_common'
            ]:
                self.assertEquals(boxturtle_rospkg_rules,
                                  get_rules(boxturtle, s))

            for s in [
                    'arm_navigation', 'motion_planners', 'pr2_calibration',
                    'pr2_ethercat_drivers'
            ]:
                self.assertEquals(wg_unbranched_rules, get_rules(boxturtle, s))
Пример #2
0
    def test_get_rules_legacy(self):
        distros = load_distros_legacy()
        # boxturtle tests
        for bt in ['boxturtle', 'boxturtle-v2']:
            boxturtle = distros['boxturtle']
            from rosdistro import get_rules

            self.assertEquals(boxturtle_ros_rules, get_rules(boxturtle, 'ros'))

            for s in [
                    'common', 'navigation', 'simulator_stage', 'visualization',
                    'visualization_common'
            ]:
                self.assertEquals(boxturtle_rospkg_rules,
                                  get_rules(boxturtle, s))

            for s in [
                    'arm_navigation', 'motion_planners', 'pr2_calibration',
                    'pr2_ethercat_drivers'
            ]:
                self.assertEquals(wg_unbranched_rules, get_rules(boxturtle, s))