Skip to content

Commit 8767816

Browse files
committed
Changed the Blender- "visualise robot"-tutorial to have the same complexity as the one for Rhino.
1 parent 4fb656d commit 8767816

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/tutorial/robots.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,16 @@ it can be used as a scaffolding for code to be run in a Python script editor wit
201201
import compas_blender
202202
from compas_blender.artists import RobotModelArtist, BaseArtist
203203
204-
compas_blender.clear() # Delete all objects in the scene
204+
compas_blender.clear() # Delete all objects in the Blender scene
205205
206-
compas.PRECISION = '12f'
207-
# Load the urdf-file from Github
208-
github = GithubPackageMeshLoader('ros-industrial/abb', 'abb_irb6600_support', 'kinetic-devel')
209-
model = RobotModel.from_urdf_file(github.load_urdf('irb6640.urdf'))
210-
model.load_geometry(github)
206+
model = RobotModel('Robby')
207+
208+
# Add some geometry to Robby here
211209
212-
# Load the robot meshes into the blender scene
213-
artist = RobotModelArtist(model, collection='COMPAS FAB::Example')
210+
# Load the robot geometry into the blender scene
211+
artist = RobotModelArtist(model, collection='COMPAS::Example Robot')
214212
215-
Note that the blender ``RobotModelArtist`` is not as developed as the one for Rhino.
213+
Note that the blender ``RobotModelArtist`` is not as developed as the one for Rhino.
216214

217215
.. raw:: html
218216

@@ -226,7 +224,7 @@ Note that the blender ``RobotModelArtist`` is not as developed as the one for Rh
226224

227225

228226

229-
See below for a complete example in Rhino.
227+
See below for a complete example of how to programmatically create a Robotmodel.
230228

231229

232230
Building robots models

0 commit comments

Comments
 (0)