Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planning Constraints from MoveIt Request #62

Open
wants to merge 5 commits into
base: indigo-devel
Choose a base branch
from

Conversation

Jmeyer1292
Copy link
Contributor

This PR needs some documentation work.

The general idea is that we load constraint plugins from the YAML file and store them as default_constraints. Added to the base class is an integer field flag list that indicates if the given plugin constraints position or orientation.

If the user specifies goal constraints that also constraint position or orientation, those are used IN PLACE of the defaults.

Jonathan Meyer added 5 commits October 13, 2017 10:11
…ints and does not immediately install them
…s from ROS params and loading extra constraints via user request constraints.
… in the goal and no pose constraints are loaded via defaults.
@jrgnicho
Copy link
Contributor

Thanks for the contribution, it's not clear to me why the build fails.

@Jmeyer1292
Copy link
Contributor Author

It appears to build, but the unit tests are failing:

[ROSUNIT] Outputting test results to /root/catkin_ws/build/constrained_ik/test_results/constrained_ik/rostest-test_test_basic_kin.xml

[ROSUNIT] Outputting test results to /root/catkin_ws/build/constrained_ik/test_results/constrained_ik/rostest-test_test_constrained_ik.xml

Error opening rosout log file '/root/.ros/5d8fb064-b2d5-11e7-a706-0242ac110002/rosout.log': No such file or directoryError opening rosout log file '/root/.ros/5d8fae2a-b2d5-11e7-a706-0242ac110002/rosout.log': No such file or directory[ERROR] [1508201512.996723939]: Skipping XML Document "/root/catkin_ws/install/share/industrial_collision_detection/industrial_collision_detection_plugin_description.xml" which had no Root Element.  This likely means the XML is malformed or missing.

[ERROR] [1508201512.996723937]: Skipping XML Document "/root/catkin_ws/install/share/industrial_collision_detection/industrial_collision_detection_plugin_description.xml" which had no Root Element.  This likely means the XML is malformed or missing.

[ERROR] [1508201513.073320526]: Null pointer to JointModelGroup

Specifically, the test_basic_kin appears to be the first problem.

Copy link
Contributor

@jrgnicho jrgnicho left a comment

Choose a reason for hiding this comment

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

There are a few TODOs here and there,
@Jmeyer1292 were you planning to make any further changes here?

@@ -56,6 +56,11 @@ class GoalOrientation : public Constraint

GoalOrientation();

virtual unsigned constraintType() const
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer to drop the virtual and use override instead.

// Constraint additions
std::vector<std::pair<bool, Constraint*> > resolveConstraints() const;

Constraint* createConstraint(const moveit_msgs::PositionConstraint& pos_constraint) const;
Copy link
Contributor

@jrgnicho jrgnicho Sep 10, 2018

Choose a reason for hiding this comment

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

Would it not be safer (memory-wise) to return smart pointers?

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.

2 participants