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

Add throttle #20

Merged
merged 7 commits into from
Dec 8, 2021
Merged

Add throttle #20

merged 7 commits into from
Dec 8, 2021

Conversation

wep21
Copy link
Contributor

@wep21 wep21 commented Dec 1, 2021

Closes #6

Signed-off-by: wep21 <[email protected]>

std::optional<std::pair<std::string, rclcpp::QoS>> ThrottleNode::try_discover_source()
{
auto publishers_info = this->get_publishers_info_by_topic(input_topic_);
Copy link
Contributor

Choose a reason for hiding this comment

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

it this copy-paste from the relay utility? If so, it seems to me that we might want to factor out a common-utilities lib to deduplicate any of the qos handling logic. Also going to call this non-blocking as I don't mind repeating a small amount of code once - but as soon as it's written a third time it should definitely be made reusable

Copy link
Contributor Author

@wep21 wep21 Dec 2, 2021

Choose a reason for hiding this comment

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

Fixed at cf45f19

// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef TOPIC_TOOLS__UTILITIES_HPP_
Copy link
Contributor

Choose a reason for hiding this comment

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

does this need to be a public API? I would be inclined to hide it in src rather than exposing it publicly to consuming packages. That way we don't have to worry about breaking API/ABI if we change things.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@emersonknapp I moved them into base node class.

wep21 added 6 commits December 6, 2021 03:35
Signed-off-by: wep21 <[email protected]>
Signed-off-by: wep21 <[email protected]>
Signed-off-by: wep21 <[email protected]>
Signed-off-by: wep21 <[email protected]>
Signed-off-by: wep21 <[email protected]>
@wep21 wep21 marked this pull request as ready for review December 5, 2021 21:55
@wep21 wep21 requested a review from a team as a code owner December 5, 2021 21:55
Copy link
Contributor

@emersonknapp emersonknapp left a comment

Choose a reason for hiding this comment

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

LGTM, let's move forward with it

@emersonknapp emersonknapp merged commit 7b26054 into ros-tooling:main Dec 8, 2021
@wep21 wep21 deleted the feature/throttle branch December 8, 2021 00:19
Copy link

@RBEGamer RBEGamer left a comment

Choose a reason for hiding this comment

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

APPROVED, let's move forward.

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.

Add throttle tool
3 participants