Skip to content

Commit

Permalink
New lights
Browse files Browse the repository at this point in the history
  • Loading branch information
Huowl committed Dec 11, 2023
1 parent 0990f9a commit 7f6f6da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rostok/library/rule_sets/leg_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create_rules(tendon=False, smc=False):
Box(0.055*2, 0.055*2, 0.055*2), material=def_mat, color=[178, 82, 164])

body_q = PrimitiveBodyBlueprint(
Box(0.3, 0.02, 0.2), material=def_mat, color=[178, 82, 164])
Box(0.3, 0.06, 0.2), material=def_mat, color=[178, 82, 164])
# blueprint for the base
base = PrimitiveBodyBlueprint(Box(0.02, 0.01, 0.02),
material=def_mat,
Expand Down
18 changes: 9 additions & 9 deletions rostok/simulation_chrono/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ def initialize_vis(self, chrono_system):
self.vis.Initialize()
self.vis.AddSkyBox()
self.vis.AddCamera(chrono.ChVectorD(-0.15, 0.35, 0.40), chrono.ChVectorD(0.0, 0.1, 0))
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.0, -0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.0, 0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.0, -0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.0, 0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.8, -0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(0.4, 0.8, 0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.8, -0.4), 0.28, chrono.ChColor(1, 1, 1))
# self.vis.AddLight(chrono.ChVectorD(-0.4, 0.8, 0.4), 0.28, chrono.ChColor(1, 1, 1))
self.vis.AddTypicalLights()
self.vis.AddLight(chrono.ChVectorD(0.3, 0.0, -0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(0.3, 0.0, 0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.0, -0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.0, 0.3), 0.28, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(0.3, 0.4, -0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(0.3, 0.4, 0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.4, -0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
self.vis.AddLight(chrono.ChVectorD(-0.3, 0.4, 0.3), 0.5, chrono.ChColor(0.7, 0.7, 0.7))
# self.vis.AddTypicalLights()
def enable_collision_shape(self):
self.vis.EnableCollisionShapeDrawing(True)

Expand Down

0 comments on commit 7f6f6da

Please sign in to comment.