Skip to content

Conversation

@AntoBrandi
Copy link
Contributor

Init the migration of some segmentation components with the pcl_ros::SACSegmentation.

Relates to #225

Future Improvements:
Given the quantity of boilerplate code that I had to duplicate from filter.hpp and that will be required in other segmentation Components as well, what about including it in the pcl_node.hpp ?
I refer to members like:

  • use_frame_params()
  • input_indices_callback()
  • createPublishers()
  • unsubscribe()
  • subscribe()
  • computePublish()

// match the timestamps exactly
auto sensor_qos_profile = rclcpp::SensorDataQoS().keep_last(max_queue_size_);
sub_input_filter_.subscribe(this, "input", sensor_qos_profile.get_rmw_qos_profile());
sub_indices_filter_.subscribe(this, "indices", sensor_qos_profile.get_rmw_qos_profile());
Copy link
Contributor

Choose a reason for hiding this comment

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

In rolling they removed the api method that uses a rmw_qos_profile_t. So you can just directly pass the rclcpp::Qos object to subscribe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right! I removed it

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