base package
Submodules
base.armature_testing module
This script tests the KUKA LWR arm, both the data and service api
-
class ArmatureTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_ik_immediate()[source]
-
test_ik_motion()[source]
-
test_immediate_api()[source]
Tests the services that have an immediate result
(no speed limit taken into account)
-
test_motion_services()[source]
Tests the services that have take some time to move
(joint speed limit taken into account)
-
test_object_attach()[source]
Checks that attached object are indeed attached at the right place.
-
test_trajectory()[source]
base.base_testing module
This script tests some of the base functionalities of MORSE.
-
class BaseTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_list_robots()[source]
Tests the simulator can return the list of robots
This test is guaranteed to be started only when the simulator
is ready.
-
test_socket_request_parser_resilience()[source]
Tests that the socket request parser is resilient to
useless whitespaces.
base.battery_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class BatteryTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_read_battery()[source]
Test if we can connect to the pose data stream, and read from it.
-
send_pose(s, x, y)[source]
base.builder_wheeled_robot module
This script tests some of the base functionalities of MORSE.
-
class BuilderWheeledRobotTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_correct_position()[source]
Tests the simulator can return the list of robots
This test is guaranteed to be started only when the simulator
is ready.
base.communication_service_testing module
-
class Communication_Service_Testing(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_semantic_camera()[source]
This test is guaranteed to be started only when the simulator
is ready.
base.gps_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class GPSTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_read_gps()[source]
Test if we can connect to the pose data stream, and read from it.
base.gripper_testing module
This script tests the KUKA LWR arm, both the data and service api
-
class gripperTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_gripper()[source]
This test is guaranteed to be started only when the simulator
is ready.
-
send_pose(s, morse, x, y, yaw)[source]
base.gyroscope_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class GyroTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_read_gyro()[source]
Test if we can connect to the pose data stream, and read from it.
base.odometry_testing module
This script tests some of the base functionalities of MORSE.
-
class OdometryTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
clear_datas(x, y, yaw)[source]
-
odometry_test_helper(morse, v, w, t)[source]
-
record_datas(record)[source]
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_odometry()[source]
This test is guaranteed to be started only when the simulator
is ready.
-
verify(expected_x, expected_y, expected_yaw)[source]
base.orientation_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class OrientationTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_orientation()[source]
Test if we can connect to the pose data stream, and read from it.
-
send_angles(s, yaw, pitch, roll)[source]
base.pose_noise_testing module
This script tests the several Noise modifiers
-
class NoiseTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_noised_gps()[source]
Test if the GPS data is noised
-
test_noised_gyro()[source]
Test if the Gyroscope data is noised
-
test_noised_odometry()[source]
Test if the odometry data is noised
-
test_noised_pose()[source]
Test if the Pose data is noised
base.pose_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class PoseTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_base_service_connection()[source]
Simply tests if the simulator is reachable by its socket interface.
-
test_get_pose_streams_service()[source]
Tests if we can retrieve the list of published data streams.
-
test_read_pose()[source]
Test if we can connect to the pose data stream, and read from it.
base.ptu_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class PTUTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_datastream()[source]
Test if we can connect to the pose data stream, and read from it.
-
test_lookat()[source]
Test if the PTU can successfully orient itself towards an
absolute x,y,z position and towards a given object.
-
test_set_service()[source]
Test if we can connect to the pose data stream, and read from it.
-
send_angles(s, pan, tilt)[source]
base.renaming_testing module
This script tests some of the base functionalities of MORSE.
-
class RenamingTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_renaming()[source]
Tests the simulator can return the list of robots
This test is guaranteed to be started only when the simulator
is ready.
base.rotorcraft_waypoint_testing module
This script tests the waypoints actuator, both the data and service api
-
class RotorcraftWaypoints_Test(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_waypoint_controller()[source]
This test is guaranteed to be started only when the simulator
is ready.
-
test_waypoint_service_controller()[source]
base.semantic_camera_testing module
This script tests the SICK laser range sensor in MORSE.
-
class Semantic_Camera_Test(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_semantic_camera()[source]
This test is guaranteed to be started only when the simulator
is ready.
-
send_dest(s, morse, x, y, yaw)[source]
base.sick_testing module
This script tests the SICK laser range sensor in MORSE.
-
class Sick_Test(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_sick()[source]
This test is guaranteed to be started only when the simulator
is ready.
base.teleport_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class TeleportTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_teleport()[source]
Test if we can connect to the pose data stream, and read from it.
-
send_pose(s, x, y, z, yaw, pitch, roll)[source]
base.utm_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class UTMModifierTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
-
test_read_gps()[source]
Test if we can connect to the pose data stream, and read from it.
base.velocity_testing module
This script tests some of the base functionalities of MORSE.
-
class Velocity_Test(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
expect_value(linear_velocity, angular_velocity, world_linear_velocity)[source]
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_vw_controller()[source]
-
send_speed(s, v, w)[source]
base.video_camera_testing module
This script tests the ‘data stream’ oriented feature of the socket interface.
-
class CameraTest(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
assertAnglesAlmostEqual(a, b, delta=0.0)[source]
-
assert_image_file_diff_less(filepath, image8u, delta)[source]
-
assert_images_diff_greater(imageA, imageB, delta)[source]
-
assert_images_diff_less(imageA, imageB, delta)[source]
-
assert_orientation(gyroscope_stream, yaw, pitch, roll, precision)[source]
-
setUpEnv()[source]
-
test_camera()[source]
Test if we can connect to the pose data stream, and read from it.
- The test has been constructed in the following way
- put the robot in a specific position and takes an
image
- using an editor image, look for the rgb value of some
specific zone, and setup some threshold
- retrieve the threshold in the scene and tests it is
mostly invariant
- It will allow to detect that :
- the camera is broken and don’t have a real image
- blender has changed the way they transmit the image
- blender changes the orientation of their image
- possibly other bugs
-
are_angles_almost_equal(a, b, delta)[source]
-
capture8u(cam_stream, image_path=None)[source]
-
diff_image(imageA, imageB, debug=None)[source]
-
flush_camera(camera_stream, morse, timeout)[source]
-
load_image(filepath, size)[source]
-
normalize_radians(angle)[source]
-
read_pgm_ascii(filepath)[source]
-
rgba2gray8u(image_rgba_base64)[source]
-
rotate_robot_and_wait(orientation_stream, gyroscope_stream, morse, yaw, timeout, precision)[source]
-
save_image(filepath, image8u)[source]
-
save_pgm_ascii(filepath, image8u, width, height)[source]
-
send_angles(orientation_stream, yaw, pitch, roll)[source]
-
wait_yaw(gyroscope_stream, morse, timeout, yaw, precision)[source]
base.waypoint_testing module
This script tests the waypoints actuator, both the data and service api
-
class Waypoints_Test(methodName='runTest')[source]
Bases: morse.testing.testing.MorseTestCase
-
setUpEnv()[source]
Defines the test scenario, using the Builder API.
-
test_waypoint_datastream()[source]
This test is guaranteed to be started only when the simulator
is ready.
-
test_waypoint_services()[source]
Module contents