-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.py
More file actions
38 lines (29 loc) · 860 Bytes
/
Copy pathdefault.py
File metadata and controls
38 lines (29 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from morse.builder import *
from scripts import const
from scripts import mapDef
#Defining robots
names = ["robot1", "robot2"]
for i in range(len(names)):
robot = ATRV(names[i])
#Defining components
motion = MotionVW()
sick = Sick()
sick.properties(laser_range = 10)
sick.properties(scan_window = 180)
sick.properties(resolution = 0.5)
sick.properties(Visible_arc = True)
pose = Pose()
pose.translate(z = -0.10)
robot.append(sick)
robot.append(motion)
robot.append(pose)
sick.add_interface('socket')
motion.add_interface('socket')
pose.add_interface('socket')
if (names[i] == "robot2"):
robot.translate(x = -3, y = 0)
robot.rotate(z = 3.1415)
#Set enviroment
env = Environment('indoors-1/boxes')
env.set_camera_location([0, 0, 60])
env.set_camera_rotation([0, 0, 0])