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

Enable topic statistics for breadcrumbs #742

Merged
merged 4 commits into from
Jan 28, 2021
Merged

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented Jan 6, 2021

This turns on topic statistics for the breadcrumb plugins in order to help address issue #655 .

Requires:

  1. Add support for topic statistics on breadcrumb deployments gazebosim/gz-sim#532
  2. Fix env parsing by placing it before executable parsing gazebosim/gz-launch#81

When this is merged and deployed you will see the following in the Ignition Gazebo logs:

  1. On successful transmission: Received breadcrumb deployment for X1__breadcrumb__
  2. If a message was dropped: Dropped message count of N for breadcrumbs on model X1__breadcrumb__

To Test

  1. ign launch -v 4 competition.ign worldName:=simple_cave_01 circuit:=cave robotName1:=X1 robotConfig1:=X1_SENSOR_CONFIG_8
  2. rostopic pub /X1/breadcrumb/deploy std_msgs/Empty

Signed-off-by: Nate Koenig nate@openrobotics.org

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig requested a review from azeey January 6, 2021 23:20
@osrf-jenkins
Copy link

Build finished. No test results found.

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@osrf-jenkins
Copy link

Build finished. 15 tests run, 0 skipped, 0 failed.

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@osrf-jenkins
Copy link

Build finished. 21 tests run, 0 skipped, 0 failed.

@nkoenig nkoenig requested a review from azeey January 28, 2021 14:20
Copy link
Member

@azeey azeey left a comment

Choose a reason for hiding this comment

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

Looks good. Just checking, do we want topic statistics on all models or just a subset? I only counted 10 spawner.rb files in this PR.

@@ -247,6 +247,11 @@
<value>$LD_LIBRARY_PATH</value>
</env>

<env>
Copy link
Member

Choose a reason for hiding this comment

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

nit: I'm not sure why this launch file has this. Shouldn't it be just in cloudsim_sim.ign?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put this here so that the behavior is the same when running locally using this launch file and running in the cloud.

@@ -1,6 +1,8 @@
<?xml version="1.0"?>
<launch>

<env name="IGN_TRANSPORT_TOPIC_STATISTICS" value="1"/>
Copy link
Member

Choose a reason for hiding this comment

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

Probably not needed here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is needed in order get topic statistics on bridge, I'll double check.

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig merged commit a1e23e8 into master Jan 28, 2021
@osrf-jenkins
Copy link

Build finished. 15 tests run, 0 skipped, 0 failed.

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.

3 participants