-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make urdf plugable and revive urdf_parser_plugin (#13)
* Make urdf plugable This makes the urdf package load parser plugins. It includes a new api might_handle() that returns a score for how likely the plugin is to be the one the given file format is meant for. This change also makes the urdf xml parser a plugin instead of a special case that is called directly. This breaks ABI with urdf::Model because the model now stores the class loader instance. Signed-off-by: Shane Loretz<[email protected]> Signed-off-by: Shane Loretz <[email protected]> * Restore dependency on urdfdom Signed-off-by: Shane Loretz <[email protected]> * Style Signed-off-by: Shane Loretz <[email protected]> * Stops crash; not sure why TODO Signed-off-by: Shane Loretz <[email protected]> * Add benchmark showing plugin overhead Signed-off-by: Shane Loretz <[email protected]> * Whitespace Signed-off-by: Shane Loretz <[email protected]> * CMake 3.5 Signed-off-by: Shane Loretz <[email protected]> * Include <string> Signed-off-by: Shane Loretz <[email protected]> * Remove buildtool_export on ament_cmake Signed-off-by: Shane Loretz <[email protected]> * exec_depend -> build_export_depend urdfdom headers Signed-off-by: Shane Loretz <[email protected]> * Remove commented code Signed-off-by: Shane Loretz <[email protected]> * Document urdf_parser_plugin usage Signed-off-by: Shane Loretz <[email protected]> * Document PIMPL forward declaration Signed-off-by: Shane Loretz <[email protected]> * Alphabetize dependencies Signed-off-by: Shane Loretz <[email protected]> * Use tinyxml2 to reduce false positive might_handle() Signed-off-by: Shane Loretz <[email protected]> * Update urdf/src/urdf_plugin.cpp Signed-off-by: Shane Loretz <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> * Handle pluginlib exceptions Signed-off-by: Shane Loretz <[email protected]> * Return early on failure Signed-off-by: Shane Loretz <[email protected]> * Document size_t max is no confidence score Signed-off-by: Shane Loretz <[email protected]> * Remove debut print Signed-off-by: Shane Loretz <[email protected]> * Move urdfdom_headers comment one line below Signed-off-by: Shane Loretz <[email protected]> * Avoid using nullptr in release mode Signed-off-by: Shane Loretz <[email protected]> * nonvirtual dtor final class Signed-off-by: Shane Loretz <[email protected]> * Use ROS 2 urdfdom_headers Signed-off-by: Shane Loretz <[email protected]> * Remove unused exec variable Signed-off-by: Shane Loretz <[email protected]> * Skip if xml fails to parse Signed-off-by: Shane Loretz <[email protected]> * Make sure test can find pluginlib plugin Signed-off-by: Shane Loretz <[email protected]> * Use SHARED instead of module Fixes OSX failing build ros/pluginlib#200 Signed-off-by: Shane Loretz<[email protected]> Signed-off-by: Shane Loretz <[email protected]> * picked -> chosen Signed-off-by: Shane Loretz <[email protected]> * Use pluginlib_enable_plugin_testing() Signed-off-by: Shane Loretz <[email protected]> * Define might_handle() return to length of data Signed-off-by: Shane Loretz<[email protected]> Signed-off-by: Shane Loretz <[email protected]> * Return data.size() when not confident Signed-off-by: Shane Loretz <[email protected]> * Try urdf when no plugin is confident Signed-off-by: Shane Loretz <[email protected]> * ModelImplementation final Signed-off-by: Shane Loretz <[email protected]> * Initialize best_plugin to nullptr Signed-off-by: Shane Loretz <[email protected]> Co-authored-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
533de85
commit 4b73ae2
Showing
11 changed files
with
374 additions
and
72 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
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
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
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
Oops, something went wrong.