Last active
December 10, 2015 19:58
-
-
Save PierrickKoch/4485096 to your computer and use it in GitHub Desktop.
display properties from morse components library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| # run blender -b -P helper.py | |
| import sys | |
| sys.path.append("/usr/local/lib/python3.3/site-packages") | |
| os.environ['MORSE_ROOT'] = "/usr/local" | |
| from morse.builder import * | |
| from morse.builder.creator import * | |
| for category in ['actuators', 'robots', 'sensors']: | |
| path = os.path.join(MORSE_COMPONENTS, category) | |
| print("# %s"%category) | |
| for filename in os.listdir(path): | |
| if filename.endswith('.blend'): | |
| filename=filename[:-6] | |
| obj = Component(category=category, filename=filename) | |
| print("obj = Component(category='%s', filename='%s')" % \ | |
| (category, filename)) | |
| print("obj.name = '%s'"%obj.name) | |
| print("obj.properties(%s)"%get_properties_str(obj.name)) | |
| obj.name = "helper.tmp" # for not rename new component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # actuators | |
| obj = Component(category='actuators', filename='orientation') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "OrientationActuatorClass", Path = "morse/actuators/orientation", Component_Tag = True) | |
| obj = Component(category='actuators', filename='destination') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "DestinationActuatorClass", Path = "morse/actuators/destination", Component_Tag = True) | |
| obj = Component(category='actuators', filename='keyboard') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "KeyboardActuatorClass", Path = "morse/actuators/keyboard", Speed = 1.0, Component_Tag = True) | |
| obj = Component(category='actuators', filename='gripper') | |
| obj.name = 'Gripper' | |
| obj.properties(Class = "GripperActuatorClass", Path = "morse/actuators/gripper", Component_Tag = True) | |
| obj = Component(category='actuators', filename='mocap_control') | |
| obj.name = 'Mocap_Controller' | |
| obj.properties(Class = "MocapControlClass", Path = "morse/actuators/mocap_control", Component_Tag = True) | |
| obj = Component(category='actuators', filename='stabilized_quadrotor') | |
| obj.name = 'quadrotor_UIMU' | |
| obj.properties(Class = "StabilizedQuadrotorActuatorClass", Path = "morse/actuators/stabilized_quadrotor", Component_Tag = True) | |
| obj = Component(category='actuators', filename='teleport') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "TeleportActuatorClass", Path = "morse/actuators/teleport", Component_Tag = True) | |
| obj = Component(category='actuators', filename='v_omega') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "VWActuatorClass", Path = "morse/actuators/v_omega", Component_Tag = True) | |
| obj = Component(category='actuators', filename='waypoint') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Target = "", Class = "WaypointActuatorClass", Path = "morse/actuators/waypoint", Component_Tag = True) | |
| obj = Component(category='actuators', filename='ptu') | |
| obj.name = 'PTU' | |
| obj.properties(Path = "morse/actuators/ptu", Speed = 1.0, Manual = False, Class = "PTUActuatorClass", Tolerance = 0.009999999776482582, Component_Tag = True) | |
| obj = Component(category='actuators', filename='v_omega_diff_drive') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "VWDiffDriveActuatorClass", Path = "morse/actuators/v_omega_diff_drive", Component_Tag = True) | |
| obj = Component(category='actuators', filename='armature_actuator') | |
| obj.name = 'Armature_Controller' | |
| obj.properties(Class = "ArmatureActuatorClass", Path = "morse/actuators/armature_actuator", Component_Tag = True) | |
| obj = Component(category='actuators', filename='pa_10') | |
| obj.name = 'PA10' | |
| obj.properties(Class = "PA10ActuatorClass", Path = "morse/actuators/pa_10", Speed = 1.0, Component_Tag = True) | |
| obj = Component(category='actuators', filename='force_torque') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "ForceTorqueActuatorClass", Path = "morse/actuators/force_torque", Component_Tag = True) | |
| obj = Component(category='actuators', filename='xy_omega') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "XYWActuatorClass", Path = "morse/actuators/xy_omega", Component_Tag = True) | |
| obj = Component(category='actuators', filename='steer_force') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "SteerForceActuatorClass", Path = "morse/actuators/steer_force", Component_Tag = True) | |
| obj = Component(category='actuators', filename='rotorcraft_attitude') | |
| obj.name = 'attitude_controller' | |
| obj.properties(Class = "RotorcraftAttitudeActuatorClass", Path = "morse/actuators/rotorcraft_attitude", Component_Tag = True) | |
| obj = Component(category='actuators', filename='kuka_lwr') | |
| obj.name = 'kuka_armature' | |
| obj.properties(Class = "KukaActuatorClass", Path = "morse/actuators/kuka_lwr", Component_Tag = False) | |
| obj = Component(category='actuators', filename='rotorcraft_waypoint') | |
| obj.name = 'Motion_Controller' | |
| obj.properties(Class = "RotorcraftWaypointActuatorClass", Path = "morse/actuators/rotorcraft_waypoint", Component_Tag = True) | |
| # robots | |
| obj = Component(category='robots', filename='victim') | |
| obj.name = 'Victim' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/victim", Class = "VictimClass", Victim_Tag = True, Injured = True, Requirements = "1,2,3", Severity = 10) | |
| obj = Component(category='robots', filename='pioneer3dx') | |
| obj.name = 'Pioneer' | |
| obj.properties(WheelFRName = "Wheel_R", Robot_Tag = True, WheelFLName = "Wheel_L", Friction = 0.800000011920929, WheelRRName = "None", Influence = 0.10000000149011612, HasSteering = False, HasSuspension = False, WheelRLName = "None", Path = "morse/robots/pioneer3dx", Class = "Pioneer3DXClass", CasterWheelName = "CasterWheel") | |
| obj = Component(category='robots', filename='human') | |
| obj.name = 'Human' | |
| obj.properties(WorldCamera = False, Sensitivity = 0.0010000000474974513, Robot_Tag = True, Path = "morse/robots/human", Manipulate = False, move_cameraFP = False, Speed = 0.019999999552965164, Class = "HumanClass", disable_keyboard_control = False, FOCUSED = False) | |
| obj = Component(category='robots', filename='quadrotor') | |
| obj.name = 'QUAD2012' | |
| obj.properties(Robot_Tag = False, Path = "morse/robots/quadrotor", Class = "QuadrotorClass") | |
| obj = Component(category='robots', filename='segwayrmp400') | |
| obj.name = 'segwayrmp400' | |
| obj.properties(WheelFRName = "wheel2", Robot_Tag = True, WheelFLName = "wheel1", Friction = 0.800000011920929, WheelRRName = "wheel4", Influence = 0.10000000149011612, HasSteering = False, HasSuspension = False, WheelRLName = "wheel3", Path = "morse/robots/segwayrmp400", Class = "SegwayRMP400PhysicsClass", FixTurningSpeed = 0.0) | |
| obj = Component(category='robots', filename='quadrotor_dynamic') | |
| obj.name = 'Quadrotor' | |
| obj.properties(Robot_Tag = False, Path = "morse/robots/quadrotor", Class = "QuadrotorClass") | |
| obj = Component(category='robots', filename='environment') | |
| obj.name = 'Environment' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/environment", Class = "EnvironmentClass") | |
| obj = Component(category='robots', filename='atrv') | |
| obj.name = 'ATRV' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/atrv", Class = "ATRVClass") | |
| obj = Component(category='robots', filename='hummer') | |
| obj.name = 'Hummer' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/hummer", friction = 200.0, Class = "HummerClass", init = 0, steer = 0.0, brakes = 0.0, cid = 0, force = 0.0) | |
| obj = Component(category='robots', filename='pr2') | |
| obj.name = 'pr2' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/pr2", COLOR = "0.0, 0.0, 1.0", Class = "PR2Class") | |
| obj = Component(category='robots', filename='sa_hand-8-semi_ok') | |
| obj.name = 'palmRight' | |
| obj.properties(Robot_Tag = True, Path = "morse/core/robot", Class = "Robot") | |
| obj = Component(category='robots', filename='rmax') | |
| obj.name = 'Rmax' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/rmax", Class = "RmaxClass") | |
| obj = Component(category='robots', filename='jido') | |
| obj.name = 'Jido' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/jido", Class = "JidoClass") | |
| obj = Component(category='robots', filename='b21') | |
| obj.name = 'b21' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/b21", Class = "B21Class") | |
| obj = Component(category='robots', filename='submarine') | |
| obj.name = 'SubmarineMesh' | |
| obj.properties(Robot_Tag = True, Path = "morse/robots/submarine", Class = "SubmarineClass") | |
| obj = Component(category='robots', filename='mocap_human') | |
| obj.name = 'Human' | |
| obj.properties(Sensitivity = 0.0010000000474974513, Robot_Tag = True, Path = "morse/robots/mocap_human", Speed = 0.009999999776482582, Class = "MocapHumanClass", DraggedObject = "", move_cameraFP = True) | |
| # sensors | |
| obj = Component(category='sensors', filename='accelerometer') | |
| obj.name = 'Accelerometer' | |
| obj.properties(Class = "AccelerometerClass", Path = "morse/sensors/accelerometer", Component_Tag = True) | |
| obj = Component(category='sensors', filename='jido_posture') | |
| obj.name = 'jido_posture' | |
| obj.properties(Class = "JidoPostureClass", PTUname = "PTU", Path = "morse/sensors/jido_posture", KUKAname = "KUKA_LWR", Component_Tag = True) | |
| obj = Component(category='sensors', filename='gyroscope') | |
| obj.name = 'Gyroscope' | |
| obj.properties(Class = "GyroscopeClass", Path = "morse/sensors/gyroscope", Component_Tag = True) | |
| obj = Component(category='sensors', filename='proximity') | |
| obj.name = 'Proximity' | |
| obj.properties(Range = 30.0, Track = "Robot_Tag", Class = "ProximitySensorClass", Path = "morse/sensors/proximity", Component_Tag = True) | |
| obj = Component(category='sensors', filename='gps') | |
| obj.name = 'GPS' | |
| obj.properties(Class = "GPSClass", Path = "morse/sensors/gps", Component_Tag = True) | |
| obj = Component(category='sensors', filename='pr2_posture') | |
| obj.name = 'pr2_posture' | |
| obj.properties(Class = "PR2PostureClass", Path = "morse/sensors/pr2_posture", Component_Tag = True) | |
| obj = Component(category='sensors', filename='battery') | |
| obj.name = 'Battery' | |
| obj.properties(Class = "BatteryClass", Path = "morse/sensors/battery", DischargingRate = 0.05000000074505806, Component_Tag = True) | |
| obj = Component(category='sensors', filename='kuka_posture') | |
| obj.name = 'kuka_posture' | |
| obj.properties(Class = "KukaPostureClass", Path = "morse/sensors/kuka_posture", KUKAname = "kuka_armature", Component_Tag = True) | |
| obj = Component(category='sensors', filename='hokuyo') | |
| obj.name = 'Hokuyo' | |
| obj.properties(laser_range = 30.0, Path = "morse/sensors/sick", resolution = 0.25, Class = "SICKClass", scan_window = 270.0, Component_Tag = True, Visible_arc = False) | |
| obj = Component(category='sensors', filename='pose') | |
| obj.name = 'Pose' | |
| obj.properties(Class = "PoseClass", Path = "morse/sensors/pose", Component_Tag = True) | |
| obj = Component(category='sensors', filename='semantic_camera') | |
| obj.name = 'CameraMain' | |
| obj.properties(Class = "SemanticCameraClass", Path = "morse/sensors/semantic_camera", capturing = True, cam_width = 512, cam_focal = 35.0, cam_height = 512, Component_Tag = True) | |
| obj = Component(category='sensors', filename='infrared') | |
| obj.name = 'Infrared' | |
| obj.properties(laser_range = 2.0, Path = "morse/sensors/sick", resolution = 1.0, Class = "SICKClass", scan_window = 20.0, Component_Tag = True, Visible_arc = False) | |
| obj = Component(category='sensors', filename='velodyne') | |
| obj.name = 'Velodyne' | |
| obj.properties(laser_range = 50.0, Path = "morse/sensors/velodyne", resolution = 0.5, Class = "VelodyneClass", scan_window = 31.5, Component_Tag = True, Visible_arc = True) | |
| obj = Component(category='sensors', filename='imu') | |
| obj.name = 'ImuMav' | |
| obj.properties(Class = "ImuClass", Path = "morse/sensors/imu", Component_Tag = True) | |
| obj = Component(category='sensors', filename='sick-ld-mrs') | |
| obj.name = 'Sick' | |
| obj.properties(laser_range = 30.0, Path = "morse/sensors/sick", layer_separation = 0.800000011920929, layer_offset = 0.125, resolution = 0.25, Class = "SICKClass", scan_window = 100.0, layers = 4, Component_Tag = True, Visible_arc = False) | |
| obj = Component(category='sensors', filename='thermometer') | |
| obj.name = 'Thermometer' | |
| obj.properties(Class = "ThermometerClass", Path = "morse/sensors/thermometer", Component_Tag = True) | |
| obj = Component(category='sensors', filename='depth_camera') | |
| obj.name = 'CameraMain' | |
| obj.properties(Class = "DepthCameraClass", Path = "morse/sensors/depth_camera", capturing = True, cam_far = 20.0, cam_near = 1.0, cam_width = 128, cam_focal = 35.0, cam_height = 128, Component_Tag = True) | |
| obj = Component(category='sensors', filename='rosace') | |
| obj.name = 'Rosace_Sensor' | |
| obj.properties(Abilities = "1,2", Class = "RosaceSensorClass", Heal_range = 2.0, Path = "morse/sensors/rosace", Component_Tag = True) | |
| obj = Component(category='sensors', filename='stereo_unit') | |
| obj.name = 'stereo_unit' | |
| obj.properties(Class = "StereoUnitClass", Path = "morse/sensors/stereo_unit", Component_Tag = True) | |
| obj = Component(category='sensors', filename='sick') | |
| obj.name = 'Sick' | |
| obj.properties(laser_range = 30.0, Path = "morse/sensors/sick", resolution = 1.0, Class = "SICKClass", scan_window = 180.0, Component_Tag = True, Visible_arc = False) | |
| obj = Component(category='sensors', filename='ptu_posture') | |
| obj.name = 'ptu_posture' | |
| obj.properties(Class = "PTUPostureClass", PTUname = "PTU", Path = "morse/sensors/ptu_posture", Component_Tag = True) | |
| obj = Component(category='sensors', filename='video_camera') | |
| obj.name = 'CameraMain' | |
| obj.properties(Vertical_Flip = False, Class = "VideoCameraClass", capturing = True, Path = "morse/sensors/video_camera", Component_Tag = True) | |
| obj = Component(category='sensors', filename='odometry') | |
| obj.name = 'Odometry' | |
| obj.properties(Class = "OdometryClass", Path = "morse/sensors/odometry", Component_Tag = True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment