-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9ef2ed
commit 7121ce0
Showing
5 changed files
with
251 additions
and
43 deletions.
There are no files selected for viewing
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,89 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<root> | ||
<tabbed_widget name="Main Window" parent="main_window"> | ||
<Tab containers="1" tab_name="slow down"> | ||
<Container> | ||
<DockSplitter count="2" orientation="-" sizes="0.501124;0.498876"> | ||
<DockSplitter count="2" orientation="|" sizes="0.500321;0.499679"> | ||
<DockArea name="..."> | ||
<plot flip_y="false" style="Lines" mode="TimeSeries" flip_x="false"> | ||
<range bottom="-0.100000" left="1648797252.376029" right="1648797352.367876" top="0.100000"/> | ||
<limitY/> | ||
<curve color="#1ac938" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.3"/> | ||
<curve color="#f14cc1" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.5"/> | ||
</plot> | ||
</DockArea> | ||
<DockArea name="..."> | ||
<plot flip_y="false" style="Lines" mode="TimeSeries" flip_x="false"> | ||
<range bottom="-0.293527" left="1648797252.376029" right="1648797352.367876" top="12.034587"/> | ||
<limitY/> | ||
<curve color="#1f77b4" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.0"/> | ||
<curve color="#ff7f0e" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.4"/> | ||
<curve color="#9467bd" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.6"/> | ||
</plot> | ||
</DockArea> | ||
</DockSplitter> | ||
<DockSplitter count="2" orientation="|" sizes="0.500321;0.499679"> | ||
<DockArea name="..."> | ||
<plot flip_y="false" style="Lines" mode="TimeSeries" flip_x="false"> | ||
<range bottom="-0.100000" left="1648797252.376029" right="1648797352.367876" top="0.100000"/> | ||
<limitY/> | ||
<curve color="#d62728" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.1"/> | ||
<curve color="#17becf" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.7"/> | ||
</plot> | ||
</DockArea> | ||
<DockArea name="..."> | ||
<plot flip_y="false" style="Lines" mode="TimeSeries" flip_x="false"> | ||
<range bottom="-0.100000" left="1648797252.376029" right="1648797352.367876" top="0.100000"/> | ||
<limitY/> | ||
<curve color="#bcbd22" name="/planning/scenario_planning/lane_driving/motion_planning/obstacle_velocity_planner/debug/values/data.9"/> | ||
</plot> | ||
</DockArea> | ||
</DockSplitter> | ||
</DockSplitter> | ||
</Container> | ||
</Tab> | ||
<currentTabIndex index="0"/> | ||
</tabbed_widget> | ||
<use_relative_time_offset enabled="0"/> | ||
<!-- - - - - - - - - - - - - - - --> | ||
<!-- - - - - - - - - - - - - - - --> | ||
<Plugins> | ||
<plugin ID="DataLoad CSV"> | ||
<default time_axis="" delimiter="0"/> | ||
</plugin> | ||
<plugin ID="DataLoad ROS2 bags"> | ||
<use_header_stamp value="false"/> | ||
<discard_large_arrays value="true"/> | ||
<max_array_size value="100"/> | ||
<boolean_strings_to_number value="true"/> | ||
<remove_suffix_from_strings value="true"/> | ||
</plugin> | ||
<plugin ID="DataLoad ULog"/> | ||
<plugin ID="ROS2 Topic Subscriber"> | ||
<use_header_stamp value="false"/> | ||
<discard_large_arrays value="false"/> | ||
<max_array_size value="10"/> | ||
<boolean_strings_to_number value="true"/> | ||
<remove_suffix_from_strings value="true"/> | ||
</plugin> | ||
<plugin ID="UDP Server"/> | ||
<plugin ID="WebSocket Server"/> | ||
<plugin ID="Fast Fourier Transform"/> | ||
<plugin ID="Quaternion to RPY"/> | ||
<plugin ID="Reactive Script Editor"> | ||
<library code="--[[ Helper function to create a ScatterXY series from arrays.

 series_name: name of the created ScatterXY series
 prefix: prefix of the timeseries, before the index of the array
 suffix_X: suffix to complete the name of the series containing the X value.
 if [nil], the index of the array will be used.
 suffix_Y: suffix to complete the name of the series containing the Y value
 timestamp: usually the tracker_time variable
 
 Example:
 
 Assuming we have multiple series in the form:
 
 /trajectory/node.{N}/position/x
 /trajectory/node.{N}/position/y
 
 where {N} is the index of the array (integer). We can create a reactive series from the array with:
 
 CreateSeriesFromArray( "my_trajectory", "/trajectory/node", "position/x", "position/y", tracker_time );
]]--

function CreateSeriesFromArray( series_name, prefix, suffix_X, suffix_Y, timestamp )
 --- create a new series or overwite the previous one
 new_series = MutableScatterXY.new(series_name)
 
 --- Append points to new_series
 index = 0
 while(true) do

 x = index;
 -- if not nil, get the X coordinate from a series
 if suffix_X ~= nil then 
 series_x = TimeseriesView.find( string.format( "%s.%d/%s", prefix, index, suffix_X) )
 if series_x == nil then break end
 x = series_x:atTime(timestamp)	 
 end
 
 series_y = TimeseriesView.find( string.format( "%s.%d/%s", prefix, index, suffix_Y) )
 if series_x == nil then break end 
 y = series_y:atTime(timestamp)
 
 new_series:push_back(x,y)
 index = index+1
 end
end
"/> | ||
<scripts/> | ||
</plugin> | ||
<plugin ID="CSV Exporter"/> | ||
<plugin ID="ROS2 Topic Re-Publisher"/> | ||
</Plugins> | ||
<!-- - - - - - - - - - - - - - - --> | ||
<previouslyLoaded_Datafiles/> | ||
<previouslyLoaded_Streamer name="ROS2 Topic Subscriber"/> | ||
<!-- - - - - - - - - - - - - - - --> | ||
<customMathEquations/> | ||
<snippets/> | ||
<!-- - - - - - - - - - - - - - - --> | ||
</root> | ||
|
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
Oops, something went wrong.