forked from gazebosim/gz-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: John Shepherd <[email protected]> Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Louise Poubel <[email protected]> Signed-off-by: Guillaume Doisy <[email protected]>
- Loading branch information
1 parent
22ecd09
commit c1f3f40
Showing
15 changed files
with
767 additions
and
11 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
include/ignition/gazebo/components/LogPlaybackStatistics.hh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2020 Open Source Robotics Foundation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
#ifndef IGNITION_GAZEBO_COMPONENTS_LogPlaybackStatistics_HH_ | ||
#define IGNITION_GAZEBO_COMPONENTS_LogPlaybackStatistics_HH_ | ||
|
||
#include <ignition/msgs/log_playback_stats.pb.h> | ||
#include <ignition/gazebo/components/Factory.hh> | ||
#include <ignition/gazebo/components/Component.hh> | ||
#include <ignition/gazebo/components/Serialization.hh> | ||
#include <ignition/gazebo/config.hh> | ||
#include <ignition/gazebo/Conversions.hh> | ||
|
||
namespace ignition | ||
{ | ||
namespace gazebo | ||
{ | ||
// Inline bracket to help doxygen filtering. | ||
inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE { | ||
namespace components | ||
{ | ||
/// \brief A component type that contains log playback, | ||
/// systems::LogPlayback, information. | ||
/// The log playback is created from world entity upon the playback plugin | ||
/// being loaded | ||
using LogPlaybackStatistics = Component<ignition::msgs::LogPlaybackStatistics, | ||
class LogPlaybackStatisticsTag, serializers::MsgSerializer>; | ||
IGN_GAZEBO_REGISTER_COMPONENT("ign_gazebo_components.LogPlaybackStatistics", | ||
LogPlaybackStatistics) | ||
} | ||
} | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0"?> | ||
|
||
<!-- Window --> | ||
<window> | ||
<width>1000</width> | ||
<height>845</height> | ||
<style | ||
material_theme="Light" | ||
material_primary="DeepOrange" | ||
material_accent="LightBlue" | ||
toolbar_color_light="#f3f3f3" | ||
toolbar_text_color_light="#111111" | ||
toolbar_color_dark="#414141" | ||
toolbar_text_color_dark="#f3f3f3" | ||
plugin_toolbar_color_light="#bbdefb" | ||
plugin_toolbar_text_color_light="#111111" | ||
plugin_toolbar_color_dark="#607d8b" | ||
plugin_toolbar_text_color_dark="#eeeeee" | ||
/> | ||
<menus> | ||
<drawer default="false"> | ||
</drawer> | ||
</menus> | ||
</window> | ||
|
||
<!-- GUI plugins --> | ||
|
||
<!-- 3D scene --> | ||
<plugin filename="GzScene3D" name="3D View"> | ||
<ignition-gui> | ||
<title>3D View</title> | ||
<property type="bool" key="showTitleBar">false</property> | ||
<property type="string" key="state">docked</property> | ||
</ignition-gui> | ||
|
||
<engine>ogre2</engine> | ||
<scene>scene</scene> | ||
<ambient_light>0.4 0.4 0.4</ambient_light> | ||
<background_color>0.8 0.8 0.8</background_color> | ||
<camera_pose>6 0 6 0 0.5 3.14</camera_pose> | ||
</plugin> | ||
|
||
<!-- Play / pause / step --> | ||
<plugin filename="WorldControl" name="World control"> | ||
<ignition-gui> | ||
<title>World control</title> | ||
<property type="bool" key="showTitleBar">false</property> | ||
<property type="bool" key="resizable">false</property> | ||
<property type="double" key="height">72</property> | ||
<property type="double" key="width">121</property> | ||
<property type="double" key="z">1</property> | ||
|
||
<property type="string" key="state">floating</property> | ||
<anchors target="3D View"> | ||
<line own="left" target="left"/> | ||
<line own="bottom" target="bottom"/> | ||
</anchors> | ||
</ignition-gui> | ||
|
||
<play_pause>true</play_pause> | ||
<step>true</step> | ||
<start_paused>true</start_paused> | ||
|
||
</plugin> | ||
|
||
<!-- Playback Scrubber --> | ||
<plugin filename="PlaybackScrubber" name="PlaybackScrubber"> | ||
<ignition-gui> | ||
<property type="bool" key="showTitleBar">false</property> | ||
<property type="double" key="height">90</property> | ||
<property type="double" key="width">350</property> | ||
<property type="double" key="z">1</property> | ||
<property key="cardBackground" type="string">#66666666</property> | ||
|
||
<property type="string" key="state">floating</property> | ||
<anchors target="3D View"> | ||
<line own="horizontalCenter" target="horizontalCenter"/> | ||
<line own="bottom" target="bottom"/> | ||
</anchors> | ||
</ignition-gui> | ||
</plugin> | ||
|
||
<!-- Inspector --> | ||
<plugin filename="ComponentInspector" name="Component inspector"> | ||
<ignition-gui> | ||
<property type="bool" key="showTitleBar">false</property> | ||
<property type="string" key="state">docked</property> | ||
</ignition-gui> | ||
</plugin> | ||
|
||
<!-- Entity tree --> | ||
<plugin filename="EntityTree" name="Entity tree"> | ||
<ignition-gui> | ||
<property type="bool" key="showTitleBar">false</property> | ||
<property type="string" key="state">docked</property> | ||
</ignition-gui> | ||
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
gz_add_gui_plugin(PlaybackScrubber | ||
SOURCES PlaybackScrubber.cc | ||
QT_HEADERS PlaybackScrubber.hh | ||
) |
Oops, something went wrong.