import sys import subprocess import os import random from morse.builder import * from strands_sim.builder.robots import Scitosa5 from bham.builder.robots import Elevator from bham.add_objects import AddObjects robot = Scitosa5() #robot = Scitosa5(with_cameras = Scitosa5.WITHOUT_DEPTHCAMS) robot.translate(x=3.75,y=-4.1, z=1.5) robot.rotate(z=-1.57) lift = Elevator() lift.translate(3.81419,2.51356,0) # At lowest level, the lift is controlled through a socket interface # by lift_controller.py, which in turn provides a ros interface... lift.add_default_interface('socket') docking_station = PassiveObject('strands_sim/robots/docking_station.blend','dockingStation') docking_station.properties(Object = True) docking_station.properties(ChargingZone = True) docking_station.translate(3.75,-4.375,0.335) docking_station.rotate(0,0,-1.57) docking_station_label = PassiveObject('strands_sim/robots/docking_station_label.blend','dockingStationLabel') docking_station_label.properties(Object = True) docking_station_label.translate(3.75,-4.475,1.75)
""" Brings in the CS building simulation environment from bham and uses ScitosA5. """ import sys import subprocess import os # Add the bham to the python path and to MORSE_RESOURCE_PATH from morse.builder import * from strands_sim.builder.robots import Scitosa5 from bham.builder.robots import Elevator robot = Scitosa5() robot.translate(x=-3.3, y=3.2, z=0.0) lift = Elevator() lift.translate(-5.05, 7.9, -6.04) # At lowest level, the lift is controlled through a socket interface # by lift_controller.py, which in turn provides a ros interface... lift.add_default_interface('socket') # Set the environment model_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data/cs_common_room.blend') env = Environment(model_file, fastmode=False) env.place_camera([10.0, -10.0, 10.0]) env.aim_camera([1.05, 0, 0.78])
#! /usr/bin/env morseexec """ Brings in the CS building simulation environment from bham and uses ScitosA5. """ import sys import subprocess import os from morse.builder import * from strands_sim.builder.robots import Scitosa5 from bham.builder.robots import Elevator robot = Scitosa5() robot.translate(x=-1.35, y=0.56, z=7.5) lift = Elevator() lift.translate(3.81419, 2.51356, 0) # At lowest level, the lift is controlled through a socket interface # by lift_controller.py, which in turn provides a ros interface... lift.add_default_interface('socket') # Set the environment model_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data/cs_ug.blend') env = Environment(model_file, fastmode=False) env.place_camera([10.0, -10.0, 10.0]) env.aim_camera([1.05, 0, 0.78])
Brings in the CS building simulation environment from bham and uses ScitosA5. """ import sys import subprocess import os # Add the bham to the python path and to MORSE_RESOURCE_PATH from morse.builder import * from strands_sim.builder.robots import Scitosa5 from bham.builder.robots import Elevator robot = Scitosa5() robot.translate(x=-3.3, y=3.2, z=0.0) lift = Elevator() lift.translate(-5.05, 7.9, -6.04) # At lowest level, the lift is controlled through a socket interface # by lift_controller.py, which in turn provides a ros interface... lift.add_default_interface('socket') # Set the environment model_file=os.path.join(os.path.dirname(os.path.abspath( __file__ )),'data/cs_common_room.blend') env = Environment(model_file,fastmode=False) env.place_camera([10.0, -10.0, 10.0]) env.aim_camera([1.05, 0, 0.78])