|
| 1 | +/** |
| 2 | + * @file simple_planner_lvs_assign_no_ik_move_profile.h |
| 3 | + * @brief |
| 4 | + * |
| 5 | + * @author Roelof Oomen |
| 6 | + * @date May 29, 2024 |
| 7 | + * @version TODO |
| 8 | + * @bug No known bugs |
| 9 | + * |
| 10 | + * @copyright Copyright (c) 2024, ROS Industrial Consortium |
| 11 | + * |
| 12 | + * @par License |
| 13 | + * Software License Agreement (Apache License) |
| 14 | + * @par |
| 15 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 16 | + * you may not use this file except in compliance with the License. |
| 17 | + * You may obtain a copy of the License at |
| 18 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 19 | + * @par |
| 20 | + * Unless required by applicable law or agreed to in writing, software |
| 21 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 22 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 23 | + * See the License for the specific language governing permissions and |
| 24 | + * limitations under the License. |
| 25 | + */ |
| 26 | + |
| 27 | +#ifndef TESSERACT_MOTION_PLANNERS_SIMPLE_PLANNER_LVS_ASSIGN_NO_IK_MOVE_PROFILE_H |
| 28 | +#define TESSERACT_MOTION_PLANNERS_SIMPLE_PLANNER_LVS_ASSIGN_NO_IK_MOVE_PROFILE_H |
| 29 | + |
| 30 | +#include <tesseract_common/macros.h> |
| 31 | +TESSERACT_COMMON_IGNORE_WARNINGS_PUSH |
| 32 | +#include <Eigen/Geometry> |
| 33 | +TESSERACT_COMMON_IGNORE_WARNINGS_POP |
| 34 | + |
| 35 | +#include <tesseract_motion_planners/simple/profile/simple_planner_profile.h> |
| 36 | + |
| 37 | +namespace tesseract_planning |
| 38 | +{ |
| 39 | +class SimplePlannerLVSAssignNoIKMoveProfile : public SimplePlannerMoveProfile |
| 40 | +{ |
| 41 | +public: |
| 42 | + using Ptr = std::shared_ptr<SimplePlannerLVSAssignNoIKMoveProfile>; |
| 43 | + using ConstPtr = std::shared_ptr<const SimplePlannerLVSAssignNoIKMoveProfile>; |
| 44 | + |
| 45 | + /** |
| 46 | + * @brief SimplePlannerFixedSizeAssignMoveProfile |
| 47 | + * @param freespace_steps The number of steps to use for freespace instruction |
| 48 | + * @param linear_steps The number of steps to use for linear instruction |
| 49 | + */ |
| 50 | + SimplePlannerLVSAssignNoIKMoveProfile(double state_longest_valid_segment_length = 5 * M_PI / 180, |
| 51 | + double translation_longest_valid_segment_length = 0.1, |
| 52 | + double rotation_longest_valid_segment_length = 5 * M_PI / 180, |
| 53 | + int min_steps = 1, |
| 54 | + int max_steps = std::numeric_limits<int>::max()); |
| 55 | + |
| 56 | + std::vector<MoveInstructionPoly> generate(const MoveInstructionPoly& prev_instruction, |
| 57 | + const MoveInstructionPoly& prev_seed, |
| 58 | + const MoveInstructionPoly& base_instruction, |
| 59 | + const InstructionPoly& next_instruction, |
| 60 | + const std::shared_ptr<const tesseract_environment::Environment>& env, |
| 61 | + const tesseract_common::ManipulatorInfo& global_manip_info) const override; |
| 62 | + |
| 63 | + /** @brief The maximum joint distance, the norm of changes to all joint positions between successive steps. */ |
| 64 | + double state_longest_valid_segment_length; |
| 65 | + |
| 66 | + /** @brief The maximum translation distance between successive steps */ |
| 67 | + double translation_longest_valid_segment_length; |
| 68 | + |
| 69 | + /** @brief The maximum rotational distance between successive steps */ |
| 70 | + double rotation_longest_valid_segment_length; |
| 71 | + |
| 72 | + /** @brief The minimum number of steps for the plan */ |
| 73 | + int min_steps; |
| 74 | + |
| 75 | + /** @brief The maximum number of steps for the plan */ |
| 76 | + int max_steps; |
| 77 | + |
| 78 | +protected: |
| 79 | + friend class boost::serialization::access; |
| 80 | + template <class Archive> |
| 81 | + void serialize(Archive&, const unsigned int); // NOLINT |
| 82 | +}; |
| 83 | + |
| 84 | +} // namespace tesseract_planning |
| 85 | + |
| 86 | +BOOST_CLASS_EXPORT_KEY(tesseract_planning::SimplePlannerLVSAssignNoIKMoveProfile) |
| 87 | + |
| 88 | +#endif // TESSERACT_MOTION_PLANNERS_SIMPLE_PLANNER_LVS_ASSIGN_NO_IK_MOVE_PROFILE_H |
0 commit comments