Skip to content

Commit 5abec01

Browse files
Apply suggestions from code review
Co-authored-by: Gonzalo Casas <[email protected]>
1 parent d3498f5 commit 5abec01

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/tutorial/files/drinking_bird.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
hat_joint_origin = Frame([0, 0, 1 - .3 + 1.5/2], [1, 0, 0], [0, 1, 0])
5050
model.add_joint('hat_joint', Joint.FIXED, head_link, hat_link, origin=hat_joint_origin)
5151

52-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
52+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
5353
artist.clear_layer()
5454
artist.draw_visual()

docs/tutorial/robots.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ it can be used as a scaffolding for code to be run in a Python script editor wit
163163
164164
# Add some geometry to Robby here
165165
166-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
166+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
167167
artist.clear_layer()
168168
artist.draw_visual()
169169
@@ -235,7 +235,7 @@ and is useful, outside of a CAD environment.
235235
box = Box(Frame.worldXY(), 1, 2, .5)
236236
model.add_link(name='box_link', visual_meshes=[box])
237237
238-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
238+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
239239
artist.clear_layer()
240240
artist.draw_visual()
241241
@@ -266,7 +266,7 @@ of the box. The box is also shifted slightly forward in the y-direction:
266266
box = Box(Frame([0, .5, .25], [1, 0, 0], [0, 1, 0]), 1, 2, .5)
267267
model.add_link(name='box_link', visual_meshes=[box])
268268
269-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
269+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
270270
artist.clear_layer()
271271
artist.draw_visual()
272272
@@ -288,7 +288,7 @@ there is a stack of two boxes:
288288
box_2 = Box(Frame([0, 0, 4], [1, 0, 0], [0, 1, 0]), .5, 1, 7)
289289
model.add_link(name='box_link', visual_meshes=[box_1, box_2])
290290
291-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
291+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
292292
artist.clear_layer()
293293
artist.draw_visual()
294294
@@ -307,7 +307,7 @@ a cylindrical second link as well as a joint connecting the two.
307307
.. code-block:: python
308308
309309
from compas.geometry import Box, Circle, Cylinder, Frame, Plane, Vector
310-
from compas.robots import RobotModel
310+
from compas.robots import Joint, RobotModel
311311
from compas_rhino.artists import RobotModelArtist
312312
313313
model = RobotModel(name='Jointy')
@@ -329,7 +329,7 @@ a cylindrical second link as well as a joint connecting the two.
329329
axis=axis,
330330
)
331331
332-
artist = RobotModelArtist(model, layer='COMPAS FAB::Example')
332+
artist = RobotModelArtist(model, layer='COMPAS::Example Robot')
333333
artist.clear_layer()
334334
artist.draw_visual()
335335

0 commit comments

Comments
 (0)