base Package

armature_pose_testing Module

This script tests the KUKA LWR arm, both the data and service api

class ArmaturePoseTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_pose_services()[source]
test_pose_stream()[source]

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

checkstate(simu, angles, precision=0.025)[source]
setUpEnv()[source]

Defines the test scenario, using the Builder API.

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_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.

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.

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.

collision_testing Module

This script tests the Collision sensor.

class FrictionTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_friction()[source]
send_speed(s, v=0, w=0, t=0)[source]

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.

destination_testing Module

This script tests the ‘data stream’ oriented feature of the socket interface.

class DestinationTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test()[source]
send_goal(s, x, y, z)[source]

friction_testing Module

This script tests the Robot’s ‘friction’ property.

http://www.blender.org/documentation/blender_python_api_2_68a_release/bpy.types.MaterialPhysics.html#bpy.types.MaterialPhysics.friction

class FrictionTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_friction()[source]
send_speed(s, v=0, w=0, t=0)[source]

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.

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, x, y, yaw)[source]

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.

imu_noise_testing Module

This script tests the several Noise modifiers

class NoiseTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_noised_imu()[source]

Test if the IMU data is noised

levels Module

This script tests some of the base functionalities of MORSE.

class LevelsTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_levels()[source]

light_testing Module

This script tests the ‘data stream’ oriented feature of the socket interface.

class LightTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_light()[source]

ned_testing Module

This script tests the NED modifier.

class NedTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_ned_pose()[source]

Test if the NED conversion is correctly done

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(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]

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]

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

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.

proximity_testing Module

This script tests the proximity sensor in MORSE.

class ProximityTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_proximity()[source]
send_dest(s, x, y, yaw)[source]

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]

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.

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]

search_and_rescue_testing Module

class SearchAndRescueTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_victim_interface()[source]
send_dest(s, x, y, yaw)[source]

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, x, y, yaw)[source]

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.

stabilized_quadrirotor_testing Module

This script tests the ‘data stream’ oriented feature of the socket interface.

class StabilizedQuadrirotorTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_phi_c_control()[source]
test_psi_c_control()[source]
test_theta_c_control()[source]
send_ctrl(s, theta, phi, psi, h)[source]

steer_force_testing Module

This script tests the ‘data stream’ oriented feature of the socket interface.

class SteerForceTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test()[source]
send_force(s, steer, force, brake)[source]

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]

thermometer_testing Module

class ThermometerTest(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]
test_temperature()[source]
send_dest(s, x, y, yaw)[source]

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.

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]

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, timeout)[source]
load_image(filepath, size)[source]
normalize_radians(angle)[source]
read_pgm_ascii(filepath)[source]
rgb2gray8u(image_rgb_data)[source]
rotate_robot_and_wait(orientation_stream, gyroscope_stream, 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, timeout, yaw, precision)[source]

vw_testing Module

This script tests some of the base functionalities of MORSE.

class VW_Test(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_vw_controller()[source]
test_vw_service_controller()[source]
send_service_speed(s, v, w, t)[source]
send_speed(s, v, w, t)[source]

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]

xyw_testing Module

This script tests some of the base functionalities of MORSE.

class XYW_Test(methodName='runTest')[source]

Bases: morse.testing.testing.MorseTestCase

setUpEnv()[source]

Defines the test scenario, using the Builder API.

test_xyw_controller()[source]
send_speed(s, x, y, w, t)[source]