Skip to content

Commit b8dd17d

Browse files
committed
Update planning scene examples
1 parent 5c1ed9a commit b8dd17d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/examples/03_backends_ros/03_collision_objects.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ This is the representation of the planning scene in RViz with the UR5.
1818
:figclass: figure
1919
:class: figure-img img-fluid
2020

21+
.. note::
22+
23+
If using Docker to run ROS, you can open
24+
`RViz on your browser <http://localhost:8080/vnc.html?resize=scale&autoconnect=true>`_.
25+
2126
Collision meshes
2227
================
2328

docs/examples/03_backends_ros/files/03_append_collision_meshes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
scene = PlanningScene(robot)
1515

1616
brick = Box.from_width_height_depth(0.11, 0.07, 0.25)
17-
mesh = Mesh.from_vertices_and_faces(brick.vertices, brick.faces)
18-
cm = CollisionMesh(mesh, 'brick')
19-
cm.frame.point.y += 0.3
2017

2118
for i in range(5):
22-
cm.frame.point.z += brick.zsize
19+
mesh = Mesh.from_vertices_and_faces(brick.vertices, brick.faces)
20+
cm = CollisionMesh(mesh, 'brick')
21+
cm.frame.point.y += 0.5
22+
cm.frame.point.z += brick.zsize * i
23+
2324
scene.append_collision_mesh(cm)
2425

2526
# sleep a bit before terminating the client

0 commit comments

Comments
 (0)