Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* FCL Bullet benchmark readme * Benchmark script and launch file updated * PR review fixups
- Loading branch information
Showing
6 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
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,10 +1,16 @@ | ||
<launch> | ||
<arg name="visualization" default="false" doc="turns on and off visualization with rviz"/> | ||
|
||
<!-- send Panda urdf to parameter server --> | ||
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(find franka_description)/robots/panda_arm_hand.urdf.xacro'" /> | ||
|
||
<include file="$(find panda_moveit_config)/launch/planning_context.launch"/> | ||
|
||
<node name="compare_collision_checking_speed" pkg="moveit_ros_planning" type="moveit_compare_collision_checking_speed_fcl_bullet" respawn="false" output="screen"> | ||
<rosparam command="load" file="$(find panda_moveit_config)/config/kinematics.yaml"/> | ||
<param name="visualization" value="$(arg visualization)" type="bool"/> | ||
</node> | ||
|
||
<include if="$(arg visualization)" file="$(find panda_moveit_config)/launch/demo.launch"/> | ||
|
||
</launch> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Planning Component Tools | ||
|
||
## Compare collision checking speeds: FCL vs Bullet | ||
The launch file `collision_checker_compare.launch` starts a benchmark between FCL and Bullet as a collision detection library. The script `compare_collision_speed_checking_fcl_bullet.cpp` performs the actual speed tests. | ||
|
||
The collision scenarios can be visualized. By default, visualization is turned off in the launch file but can be activated through `visualization:=true` as an argument to the `roslaunch`. If activated, rviz is launched and visualizations like in the images below are created. For the speed test, either meshes or other available shape primitives like the box can be used. | ||
|
||
The clutter world objects are randomly placed such that they don't collide with the robot. The robot can then be moved to a colliding configuration. In the images, the red color of world objects indicates a collision with the robot. | ||
|
||
<p align="center"> | ||
<img src="images/collision_speed_100_meshes_no_collision.png" width="400"> | ||
<img src="images/collision_speed_100_meshes_collision.png" width="400"> | ||
<img src="images/collision_speed_100_box_collision.png" width="400"> | ||
</p> | ||
|
||
The results of the speed test are printed to the console. Their unit is collision checks per second. A current overview over the results is given in the table below. Note that absolute values are not relevant because they are depending on the computing power of the local machine but the relative differences between Bullet and FCL should be reproducible. | ||
|
||
| Collision environment | Bullet | FCL | | ||
| :--------------- |------------:| ----:| | ||
| Robot self check, no collision | 220,000 | 110,000 | | ||
| World clutter 100 meshes, no collision | 37,000 | 38,000 | | ||
| World clutter 100 meshes, 4 in collision | 8,000 | 3,000 | |
Binary file added
BIN
+145 KB
...planning/planning_components_tools/images/collision_speed_100_box_collision.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+409 KB
...nning/planning_components_tools/images/collision_speed_100_meshes_collision.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+351 KB
...ng/planning_components_tools/images/collision_speed_100_meshes_no_collision.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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