Skip to content
Browse files

Added Morsy, a new lightweigth robot model for testing

The model may be used for education material or MORSE demos for
instance.

Based on the official MORSE mascott ;-)
Thanks to Michael Karg for the initial Blender version
  • Loading branch information...
1 parent dfeef4b commit db9b8f954e6a55f7ba8b525ce59cea02ee408678 Séverin Lemaignan committed with adegroote Mar 28, 2013
View
BIN data/robots/morsy.blend
Binary file not shown.
View
BIN doc/media/robots/morsy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
12 doc/morse/user/robots/morsy.rst
@@ -0,0 +1,12 @@
+The MORSE Morsy mascot
+======================
+
+Morsy is the little mascot of the MORSE project.
+
+.. image:: ../../../media/robots/morsy.png
+ :align: center
+ :width: 600
+
+The model does not feature any particular behaviour. It's main purpose is for
+teaching and examples.
+
View
5 src/morse/builder/robots/morserobots.py
@@ -3,6 +3,11 @@
from morse.builder.creator import RobotCreator
from morse.builder import Robot, WheeledRobot
+class Morsy(Robot):
+ def __init__(self, name=None):
+ Robot.__init__(self, "morsy")
+ self.name = name
+
class ATRV(Robot):
def __init__(self, name=None):
Robot.__init__(self, "atrv")
View
4 tools/components_exhibit.py
@@ -63,6 +63,7 @@ def get_subclasses(module_name, skip_submodules=[]):
specific_camera_pose_per_component = {
# Robots
'BasePR2': (.36, -2.25, 1.77),
+ 'Morsy': (3.84, -3.12, 2.12, 1.32, 0.0, 0.86),
'SegwayRMP400': (.36, -2.25, 1.77),
'ATRV': (.36, -2.25, 1.77),
'Human': (4, 0, 2.8), # 65°,0,90°
@@ -105,6 +106,9 @@ def get_subclasses(module_name, skip_submodules=[]):
}
def pose_camera(location = (.36, -1.25, .77), rotation = (1.1, 0, 0.25)):
+ if len(location) == 6:
+ rotation = location[3:]
+ location = location[:3]
scene = bpy.context.scene
scene.camera.rotation_euler = Euler(rotation, 'XYZ')
scene.camera.location = location

0 comments on commit db9b8f9

Please sign in to comment.
Something went wrong with that request. Please try again.