-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/BartyPitt/RoboticsProject
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |