Skip to content

add list of default capabilities - #359

Merged
v4hn merged 1 commit into
moveit:kinetic-develfrom
v4hn:pr-kinetic-default-capabilities
Nov 16, 2016
Merged

v4hn merged 1 commit into
moveit:kinetic-develfrom
v4hn:pr-kinetic-default-capabilities

Conversation

@v4hn

@v4hn v4hn commented Nov 15, 2016 •

Copy link
Copy Markdown
Contributor

Functionality in MoveIt!'s move_group node is implemented in terms of
MoveGroupCapability plugins. But until now the choice of which plugins
are loaded was solely left to the user who in many cases is not familiar
with these plugins at all. This entails that whenever we introduce or change
a basic capability we have to annoy the user with warnings on startup that
bug her/him to change and/or update his move_group.launch file.

This commit changes the startup behavior of move_group to load a specified
list of default capabilities and provides a new ROS parameter disable_capabilities
that can be used to disable default plugins.

I'm unsure about whether or not we should backport this to indigo/jade.
Personally I'm mildly in favor of backporting.

Fixes #125.

@v4hn

v4hn commented Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

Format checking failed and I expected that:

 static const char* DEFAULT_CAPABILITIES[] = {
-   "move_group/MoveGroupCartesianPathService",
-   "move_group/MoveGroupKinematicsService",
-   "move_group/MoveGroupCartesianPathService",
-   "move_group/MoveGroupExecuteTrajectoryAction",
-   "move_group/MoveGroupKinematicsService",
-   "move_group/MoveGroupMoveAction",
-   "move_group/MoveGroupPickPlaceAction",
-   "move_group/MoveGroupPlanService",
-   "move_group/MoveGroupQueryPlannersService",
-   "move_group/MoveGroupStateValidationService",
-   "move_group/MoveGroupGetPlanningSceneService",
-   "move_group/ApplyPlanningSceneService",
-   "move_group/ClearOctomapService",
+  "move_group/MoveGroupCartesianPathService", "move_group/MoveGroupKinematicsService",
+  "move_group/MoveGroupCartesianPathService", "move_group/MoveGroupExecuteTrajectoryAction",
+  "move_group/MoveGroupKinematicsService", "move_group/MoveGroupMoveAction", "move_group/MoveGroupPickPlaceAction",
+  "move_group/MoveGroupPlanService", "move_group/MoveGroupQueryPlannersService",
+  "move_group/MoveGroupStateValidationService", "move_group/MoveGroupGetPlanningSceneService",
+  "move_group/ApplyPlanningSceneService", "move_group/ClearOctomapService",
 };

Now I could change that, but I kinda disagree with the formatter here.
@davetcoleman do we really want such lists to group multiple items on each line?

This is independent of the actual content of this request though, so feel free to ignore this error during review.

@rhaschke

Copy link
Copy Markdown
Contributor

+1.
Regarding clang-formatting, I had similar issues. The solution, I found is to manually turn off/on clang formatting by an appropriate comment in the code:

// clang-format off
... some untouched code
// clang-format on

@davetcoleman

Copy link
Copy Markdown
Member

@rhaschke beat me to the response - I occasionally disagree with clang and use those commands, yes. Documented: https://github.com/ros-planning/moveit.ros.org/pull/106

@v4hn
v4hn force-pushed the pr-kinetic-default-capabilities branch from 3990e23 to b376520 Compare November 15, 2016 16:05
Functionality in MoveIt!'s move_group node is implemented in terms of
MoveGroupCapability plugins. But until now the choice of which plugins
are loaded was solely left to the user who in many cases is not familiar
with these plugins at all. This entails that whenever we introduce or change
a basic capability we have to annoy the user with warnings on startup that
bug him to change and/or update his move_group.launch file.

This commit changes the startup behavior of move_group to load a specified
list of default capabilities and provides a new ROS parameter `disable_capabilities`
that can be used to disable default plugins.

Fixes moveit#125.
@v4hn

v4hn commented Nov 15, 2016

Copy link
Copy Markdown
Contributor Author

On Tue, Nov 15, 2016 at 07:58:53AM -0800, Dave Coleman wrote:

@rhaschke beat me to the response - I occasionally disagree with clang and use those commands, yes. Documented: https://github.com/ros-planning/moveit.ros.org/pull/106

Good to know, thanks @rhaschke!

I updated the commit

@davetcoleman davetcoleman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

{
// These capabilities are loaded unless listed in disable_capabilities
// clang-format off
static const char* DEFAULT_CAPABILITIES[] = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is char* really the best option here? MoveIt! almost always uses std::string - and this structure gets inserted into an std::string set

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I call bike shed. I don't see how this makes any difference.

Incidentally, I used vector<string> before, but this requires braced-initializer-lists from C++11 and I decided to write this standard-agnostic because I'm unsure whether to backport it.
So I changed it to full C-style structure instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@davetcoleman

Copy link
Copy Markdown
Member

Backporting: the adverse affect I see is that users who purposefully removed a capability in the past, for example because they created their own custom version, will suddenly have it re-enabled during a routine update. But I've never heard of anyone doing this and am not sure what use-cases there are for it. I think if we announce this feature on the mailing list with a small warning, its safe to backport.

@v4hn

v4hn commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

ok, merging.
I will create a pull-request to backport this to indigo

@v4hn
v4hn merged commit dabe57f into moveit:kinetic-devel Nov 16, 2016
v4hn added a commit to v4hn/moveit that referenced this pull request Nov 16, 2016
Functionality in MoveIt!'s move_group node is implemented in terms of
MoveGroupCapability plugins. But until now the choice of which plugins
are loaded was solely left to the user who in many cases is not familiar
with these plugins at all. This entails that whenever we introduce or change
a basic capability we have to annoy the user with warnings on startup that
bug him to change and/or update his move_group.launch file.

This commit changes the startup behavior of move_group to load a specified
list of default capabilities and provides a new ROS parameter `disable_capabilities`
that can be used to disable default plugins.

Fixes moveit#125.
v4hn added a commit to v4hn/moveit that referenced this pull request Nov 17, 2016
Functionality in MoveIt!'s move_group node is implemented in terms of
MoveGroupCapability plugins. But until now the choice of which plugins
are loaded was solely left to the user who in many cases is not familiar
with these plugins at all. This entails that whenever we introduce or change
a basic capability we have to annoy the user with warnings on startup that
bug him to change and/or update his move_group.launch file.

This commit changes the startup behavior of move_group to load a specified
list of default capabilities and provides a new ROS parameter `disable_capabilities`
that can be used to disable default plugins.

Fixes moveit#125.
davetcoleman pushed a commit that referenced this pull request Nov 17, 2016
Functionality in MoveIt!'s move_group node is implemented in terms of
MoveGroupCapability plugins. But until now the choice of which plugins
are loaded was solely left to the user who in many cases is not familiar
with these plugins at all. This entails that whenever we introduce or change
a basic capability we have to annoy the user with warnings on startup that
bug him to change and/or update his move_group.launch file.

This commit changes the startup behavior of move_group to load a specified
list of default capabilities and provides a new ROS parameter `disable_capabilities`
that can be used to disable default plugins.

Fixes #125.
JafarAbdi pushed a commit to JafarAbdi/moveit that referenced this pull request Mar 24, 2022
* Add forward_trajectory local solver plugin (moveit#359)
* Use ros2_control based joint simulation and remove unnecessary comment
* Update copyrights
* Restructure hybrid planning package
* Fix formatting and add missing time stamp in local solver plugin
* Remove unnecessary logging and param loading
* Enable different interfaces between local planner and controller
* Use JointGroupPositionController as demo hardware controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants