Esempio n. 1
0
#! /usr/bin/env morseexec

""" Basic MORSE simulation scene for <strands_sim> environment

Feel free to edit this template as you like!
"""

from morse.builder import *
from strands_sim.builder.robots import Scitosa5

#robot = Ranger()
robot = Scitosa5()

# tum_kitchen
robot.translate(x=2.5, y=3.2, z=0.0)

# Battery discharging rate, in percent per seconds
# The bateery state is published to /battery
robot.battery.properties(DischargingRate=1.0)

# Set the environment
model_file=os.path.join(os.path.dirname(os.path.abspath( __file__ )),'data/MHTThirdFloor.blend')
env = Environment(model_file,fastmode=False)
env.aim_camera([1.0470, 0, 0.7854])
Please note: For using the Kinect sensor, or any depth camera, Python 3.3 is required.

If you have problems with the installation please check out this answer:
https://sympa.laas.fr/sympa/arc/morse-users/2013-04/msg00015.html

"""
from morse.builder import *
from strands_sim.builder.robots import Scitosa5

import random
#######################b########################################################
# ROBOT
###############################################################################

robot = Scitosa5(Scitosa5.WITHOUT_CAMERAS)
#robot = Scitosa5(Scitosa5.WITHOUT_DEPTHCAMS)


# tum_kitchen
robot.translate(x=2.5, y=3.2, z=0.0)

###############################################################################
# SENSORS
###############################################################################
#######################################
# ADD CAMERA SENSORS MANUALLY IF NEEDED
#######################################

# ## Video camera
# videocam = VideoCamera()