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
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>"
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>"
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>"
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>"
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>6</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def spawner(_name, _modelURI, _worldName, _x, _y, _z, _roll, _pitch, _yaw)
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>12</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
7 changes: 7 additions & 0 deletions subt_ign/launch/cave_circuit.ign
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@
<value>$LD_LIBRARY_PATH</value>
</env>

<env>
<name>IGN_TRANSPORT_TOPIC_STATISTICS</name>
<value>1</value>
</env>

<!-- Start ROS first. This is a bit hacky for now. -->
<!-- Make sure to source /opt/ros/melodic/setup.bash -->
<executable name='ros'>
Expand Down Expand Up @@ -738,6 +743,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down Expand Up @@ -880,6 +886,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
7 changes: 7 additions & 0 deletions subt_ign/launch/cloudsim_sim.ign
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@
<value>$LD_LIBRARY_PATH</value>
</env>

<env>
<name>IGN_TRANSPORT_TOPIC_STATISTICS</name>
<value>1</value>
</env>

<!-- Run the websocket server -->
<plugin name="ignition::launch::WebsocketServer"
filename="libignition-launch-websocket-server.so">
Expand Down Expand Up @@ -615,6 +620,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down Expand Up @@ -757,6 +763,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
7 changes: 7 additions & 0 deletions subt_ign/launch/competition.ign
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,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.

<name>IGN_TRANSPORT_TOPIC_STATISTICS</name>
<value>1</value>
</env>

<!-- Start ROS first. This is a bit hacky for now. -->
<!-- Make sure to source /opt/ros/melodic/setup.bash -->
<executable name='ros'>
Expand Down Expand Up @@ -539,6 +544,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down Expand Up @@ -681,6 +687,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
6 changes: 6 additions & 0 deletions subt_ign/launch/tunnel_circuit_practice.ign
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@
<name>IGN_GAZEBO_SYSTEM_PLUGIN_PATH</name>
<value>$LD_LIBRARY_PATH</value>
</env>
<env>
<name>IGN_TRANSPORT_TOPIC_STATISTICS</name>
<value>1</value>
</env>

<!-- Start ROS first. This is a bit hacky for now. -->
<!-- Make sure to source /opt/ros/melodic/setup.bash -->
Expand Down Expand Up @@ -542,6 +546,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down Expand Up @@ -684,6 +689,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
7 changes: 7 additions & 0 deletions subt_ign/launch/urban_circuit.ign
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@
<value>$LD_LIBRARY_PATH</value>
</env>

<env>
<name>IGN_TRANSPORT_TOPIC_STATISTICS</name>
<value>1</value>
</env>

<!-- Start ROS first. This is a bit hacky for now. -->
<!-- Make sure to source /opt/ros/melodic/setup.bash -->
<executable name='ros'>
Expand Down Expand Up @@ -542,6 +547,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down Expand Up @@ -684,6 +690,7 @@
<topic>/model/#{_name}/breadcrumb/deploy</topic>
<max_deployments>#{max_breadcrumbs}</max_deployments>
<disable_physics_time>3.0</disable_physics_time>
<topic_statistics>true</topic_statistics>
<breadcrumb>
<sdf version="1.6">
<model name="#{_name}__breadcrumb__">
Expand Down
2 changes: 2 additions & 0 deletions subt_ros/launch/competition_init.launch
Original file line number Diff line number Diff line change
@@ -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.


<arg name="world_name"/>
<arg name="robot_names" default=""/>
<arg name="enable_ground_truth" default="0"/>
Expand Down
2 changes: 2 additions & 0 deletions subt_ros/launch/vehicle_topics.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0"?>
<launch>
<env name="IGN_TRANSPORT_TOPIC_STATISTICS" value="1"/>
nkoenig marked this conversation as resolved.
Show resolved Hide resolved

<arg name="world_name"/>
<arg name="name"/>
<arg name="link_name" value="base_link"/>
Expand Down