Repository navigation
Conversation
Authored by @anasarrak
henningkayser
left a comment
There was a problem hiding this comment.
There seems to be some mismatch between this branch and the current master sync. Also some conflicts are not fully resolved.
| @param constraint A state validity constraint to be required for IK solutions */ | ||
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::Pose& pose, double timeout = 0.0, | ||
| const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::msg::Pose& pose, unsigned int attempts = 0, |
There was a problem hiding this comment.
All these changes in setFromIK() functions are invalid because the attempts parameter is not supported anymore.
It seems like these are not properly resolved merge conflicts.
There was a problem hiding this comment.
@henningkayser can you help addressing this? what's your suggestion? is this something that will get fixed once we sync with moveit1 master? If so, shall we skip your comment for now?
There was a problem hiding this comment.
@vmayoral I think the feature branch was created by merging an out-of-sync branch with your commit history into master. The resulting conflicts where not resolved completely so your commits include additional and in this case outdated code. This particular conflict comes from eebfe9c (moveit/moveit1#1288) not being part of the feature base branch yet. I would suggest creating a new branch that is based on master and then using cherry-pick to apply the clean history of your changes (not from this merged feature branch). Then force push to the feature branch.
This problem won't be fixed by syncing master again (only if conflicts are resolved by hand since the history is broken). Also I'm strongly against skipping this since this PR includes a bunch of these conflicts.
There was a problem hiding this comment.
Thanks @henningkayser, that makes sense. I recall @rhaschke pushing some stuff accidentally so it may be from that time since this PR is from a while ago.
I've created a new PR at #59. Can you please have a look there?
| } | ||
| } | ||
|
|
||
| /// Call harmonizePosition() for all joints / all joints in group / given joint |
| elapsed = (ros::WallTime::now() - start).toSec(); | ||
| first_seed = false; | ||
| } while (elapsed < timeout); | ||
| } |
| // Explicitly use a single IK attempt only: We want a smooth trajectory. | ||
| // Random seeding (of additional attempts) would probably create IK jumps. | ||
| if (setFromIK(group, pose, link->getName(), consistency_limits, 0.0, validCallback, options)) | ||
| if (setFromIK(group, pose, link->getName(), consistency_limits, 1, 0.0, validCallback, options)) |
| out << nm[i] << "=" << position_[i] << std::endl; | ||
| } | ||
|
|
||
| void RobotState::printStatePositionsWithJointLimits(const moveit::core::JointModelGroup* jmg, std::ostream& out) const |
There was a problem hiding this comment.
Does not belong in this PR
| TEST_F(OneRobot, testGenerateTrajectory) | ||
| { | ||
| const robot_model::JointModelGroup* joint_model_group = robot_model_->getJointModelGroup("base_from_base_to_e"); | ||
| ASSERT_TRUE(joint_model_group); |
There was a problem hiding this comment.
There shouldn't be any changes in this file, no?
| msg.type = visualization_msgs::Marker::CUBE; | ||
| msg.color.a = 0.5; | ||
| msg.lifetime.sec = 3000; | ||
| auto msg = std::make_shared<visualization_msgs::Marker>(); |
There was a problem hiding this comment.
I'm not sure if it's always safe to reuse this shared pointer for multiple publish calls. Since we don't rely on performance in this test we might just pass the message by reference.
|
@anasarrak (Since the original PR was done by them) |
|
I've included @davetcoleman's approach from #21 here. From @henningkayser's comments, it sounds like some sync is required to move forward with this PR. @henningkayser, you seem to be knowledgeable about what should be in or out in this submodule, can you help addressing your comments above? |
| @param constraint A state validity constraint to be required for IK solutions */ | ||
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::Pose& pose, double timeout = 0.0, | ||
| const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::msg::Pose& pose, unsigned int attempts = 0, |
There was a problem hiding this comment.
@vmayoral I think the feature branch was created by merging an out-of-sync branch with your commit history into master. The resulting conflicts where not resolved completely so your commits include additional and in this case outdated code. This particular conflict comes from eebfe9c (moveit/moveit1#1288) not being part of the feature base branch yet. I would suggest creating a new branch that is based on master and then using cherry-pick to apply the clean history of your changes (not from this merged feature branch). Then force push to the feature branch.
This problem won't be fixed by syncing master again (only if conflicts are resolved by hand since the history is broken). Also I'm strongly against skipping this since this PR includes a bunch of these conflicts.
| } | ||
|
|
||
| /** \brief Invert velocity if present. */ | ||
| void invertVelocity(); |
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::Pose& pose, const std::string& tip, | ||
| double timeout = 0.0, const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::msg::Pose& pose, const std::string& tip, | ||
| unsigned int attempts = 0, double timeout = 0.0, |
| @param timeout The timeout passed to the kinematics solver on each attempt */ | ||
| bool setFromIK(const JointModelGroup* group, const Eigen::Isometry3d& pose, double timeout = 0.0, | ||
| const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| bool setFromIK(const JointModelGroup* group, const Eigen::Isometry3d& pose, unsigned int attempts = 0, |
| @param constraint A state validity constraint to be required for IK solutions */ | ||
| bool setFromIK(const JointModelGroup* group, const Eigen::Isometry3d& pose, const std::string& tip, | ||
| double timeout = 0.0, const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| unsigned int attempts = 0, double timeout = 0.0, |
| bool setFromIK(const JointModelGroup* group, const geometry_msgs::msg::Pose& pose, unsigned int attempts = 0, | ||
| double timeout = 0.0, const GroupStateValidityCallbackFn& constraint = GroupStateValidityCallbackFn(), | ||
| const kinematics::KinematicsQueryOptions& options = kinematics::KinematicsQueryOptions()); | ||
| [[deprecated("The attempts argument is not supported anymore.")]] bool |
There was a problem hiding this comment.
I think removing deprecated functions is fine. Did we decide to do this?
| void printStatePositions(std::ostream& out = std::cout) const; | ||
|
|
||
| /** \brief Output to console the current state of the robot's joint limits */ | ||
| void printStatePositionsWithJointLimits(const moveit::core::JointModelGroup* jmg, |
|
Follows at #59. |
Port Robot model loader
Follows from #13