Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
felixm34 committed Mar 12, 2020
2 parents d356bfb + ffb7808 commit a77834f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes
19 changes: 19 additions & 0 deletions docs/collision_detection.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
Collision Detection
======================

.. code-block:: python
p = geometry_msgs.msg.PoseStamped()
#p = PoseStamped()
p.header.frame_id = robot.get_planning_frame()
p.pose.position.x = 0.4
p.pose.position.y = -0.301298
p.pose.position.z = -0.2
p.pose.orientation.x = 0.0
p.pose.orientation.y = 0
p.pose.orientation.z = 0.0
p.pose.orientation.w = 0.4440158
#scene.add_mesh("Connect4", p,"connect4.STL")
scene.add_box("table", p, (0.5, 1.5, 0.6))
rospy.sleep(2)
Throughout the project , collision detection has been implemented by placing the obstacle geometry directly into the moveit scene.
The reason for this is that by placing it into the Moveit scene it connects directly to the motion planning.
Originally an simplified stl model of the board was placed inside the environment.
This was replaced with just a large cuboid over the area that would be taken up by the grid, as it significantly reduced the computation time for motion planning.

.. figure:: _static/Rviz_obstacle.png
:align: center
:figclass: align-center

0 comments on commit a77834f

Please sign in to comment.