Repository navigation
Conversation
| * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
| * POSSIBILITY OF SUCH DAMAGE. | ||
| *********************************************************************/ | ||
| * Software License Agreement (BSD License) |
There was a problem hiding this comment.
Please revert these kind of changes
| @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.
The attempts parameter was removed so it shouldn't be added here again. This also accounts for the removed deprecated functions below.
| const EigenSTL::vector_Isometry3d& attach_trans, const std::set<std::string>& touch_links, | ||
| const std::string& link_name, | ||
| const trajectory_msgs::JointTrajectory& detach_posture = trajectory_msgs::JointTrajectory()); | ||
| void |
| { | ||
| static bool _jointStateToRobotState(const sensor_msgs::JointState& joint_state, RobotState& state) | ||
| // Logger | ||
| rclcpp::Logger LOGGER = rclcpp::get_logger("moveit").get_child("robot_state"); |
There was a problem hiding this comment.
| rclcpp::Logger LOGGER = rclcpp::get_logger("moveit").get_child("robot_state"); | |
| const rclcpp::Logger LOGGER = rclcpp::get_logger("moveit").get_child("robot_state"); |
There was a problem hiding this comment.
Also, LOGGER is used outside this anonymous namespace so it should stay at the same position as LOGNAME before.
| error = true; | ||
| continue; | ||
| } | ||
| // if frames do not mach, attempt to transform |
| if (timeout < std::numeric_limits<double>::epsilon()) | ||
| timeout = jmg->getDefaultIKTimeout(); | ||
|
|
||
| if (attempts == 0) |
| // Bijection | ||
| const std::vector<unsigned int>& bij = jmg->getKinematicsSolverJointBijection(); | ||
|
|
||
| bool first_seed = true; |
| ros::Publisher pub_aabb = nh.advertise<visualization_msgs::Marker>("/visualization_aabb", 10); | ||
| ros::Publisher pub_obb = nh.advertise<visualization_msgs::Marker>("/visualization_obb", 10); | ||
| rclcpp::init(argc, argv); | ||
| auto node = rclcpp::Node::make_shared("visualize_pr2"); |
There was a problem hiding this comment.
Is there a reason to create a shared pointer? I think rclcpp::Node node("visualize_pr2") would be sufficient.
| ros::Publisher pub_obb = nh.advertise<visualization_msgs::Marker>("/visualization_obb", 10); | ||
| rclcpp::init(argc, argv); | ||
| auto node = rclcpp::Node::make_shared("visualize_pr2"); | ||
| auto pub_aabb = node->create_publisher<visualization_msgs::Marker>("/visualization_aabb", rmw_qos_profile_default); |
There was a problem hiding this comment.
Where is rmw_qos_profile_default defined?
| 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 think it's perfectly fine to use a reference instead of a shared pointer here.
|
@ahcorde I see that you attempted to revert some of the unwanted changes. Unfortunately there still are a lot of these left. I strongly advocate to rebase this PR onto the current master branch or better recreate it and cherry-pick and verify the desired commits. |
…terface Port planning_scene_interface to ROS2
* Minor fixup
Follows from #38 and particularly, after #38 (comment).