Skip to content

Commit 7f6f6da

Browse files
committed
New lights
1 parent 0990f9a commit 7f6f6da

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

rostok/library/rule_sets/leg_rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def create_rules(tendon=False, smc=False):
4040
Box(0.055*2, 0.055*2, 0.055*2), material=def_mat, color=[178, 82, 164])
4141

4242
body_q = PrimitiveBodyBlueprint(
43-
Box(0.3, 0.02, 0.2), material=def_mat, color=[178, 82, 164])
43+
Box(0.3, 0.06, 0.2), material=def_mat, color=[178, 82, 164])
4444
# blueprint for the base
4545
base = PrimitiveBodyBlueprint(Box(0.02, 0.01, 0.02),
4646
material=def_mat,

rostok/simulation_chrono/simulation.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ def initialize_vis(self, chrono_system):
5757
self.vis.Initialize()
5858
self.vis.AddSkyBox()
5959
self.vis.AddCamera(chrono.ChVectorD(-0.15, 0.35, 0.40), chrono.ChVectorD(0.0, 0.1, 0))
60-
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.0, -0.4), 0.28, chrono.ChColor(1, 1, 1))
61-
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.0, 0.4), 0.28, chrono.ChColor(1, 1, 1))
62-
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.0, -0.4), 0.28, chrono.ChColor(1, 1, 1))
63-
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.0, 0.4), 0.28, chrono.ChColor(1, 1, 1))
64-
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.8, -0.4), 0.28, chrono.ChColor(1, 1, 1))
65-
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.8, 0.4), 0.28, chrono.ChColor(1, 1, 1))
66-
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.8, -0.4), 0.28, chrono.ChColor(1, 1, 1))
67-
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.8, 0.4), 0.28, chrono.ChColor(1, 1, 1))
68-
self.vis.AddTypicalLights()
60+
self.vis.AddLight(chrono.ChVectorD(0.3, 0.0, -0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
61+
self.vis.AddLight(chrono.ChVectorD(0.3, 0.0, 0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
62+
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.0, -0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
63+
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.0, 0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
64+
self.vis.AddLight(chrono.ChVectorD(0.3, 0.4, -0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
65+
self.vis.AddLight(chrono.ChVectorD(0.3, 0.4, 0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
66+
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.4, -0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
67+
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.4, 0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
68+
# self.vis.AddTypicalLights()
6969
def enable_collision_shape(self):
7070
self.vis.EnableCollisionShapeDrawing(True)
7171

0 commit comments

Comments
 (0)