178 lines
9.0 KiB
XML
178 lines
9.0 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<root>
|
|
<tabbed_widget name="Main Window" parent="main_window">
|
|
<Tab containers="1" tab_name="tab1">
|
|
<Container>
|
|
<DockSplitter orientation="-" count="2" sizes="0.5;0.5">
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="155.851536" bottom="144.739548" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/gimbal_yaw" color="#1f77b4"/>
|
|
<curve name="/cmd_yaw" color="#d62728"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="18.307670" bottom="-18.813059" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/gimbal_pitch" color="#1ac938"/>
|
|
<curve name="/cmd_pitch" color="#ff7f0e"/>
|
|
</plot>
|
|
</DockArea>
|
|
</DockSplitter>
|
|
</Container>
|
|
</Tab>
|
|
<Tab containers="1" tab_name="tab2">
|
|
<Container>
|
|
<DockSplitter orientation="-" count="4" sizes="0.25072;0.24928;0.25072;0.24928">
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="2.667341" bottom="2.652464" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_R_yaw" color="#f14cc1"/>
|
|
<curve name="/R_yaw" color="#1f77b4"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="0.063579" bottom="-0.021388" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/R_V_yaw" color="#d62728"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="0.155296" bottom="0.139135" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_R_pitch" color="#9467bd"/>
|
|
<curve name="/R_pitch" color="#1f77b4"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="9.257444" bottom="7.987190" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_R_dis" color="#17becf"/>
|
|
<curve name="/R_dis" color="#bcbd22"/>
|
|
</plot>
|
|
</DockArea>
|
|
</DockSplitter>
|
|
</Container>
|
|
</Tab>
|
|
<Tab containers="1" tab_name="tab3">
|
|
<Container>
|
|
<DockSplitter orientation="-" count="3" sizes="0.333813;0.332374;0.333813">
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="172.996997" bottom="116.017715" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_yaw" color="#ff7f0e"/>
|
|
<curve name="/yaw" color="#9467bd"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="17.228124" bottom="-36.584246" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_pitch" color="#d62728"/>
|
|
<curve name="/pitch" color="#f14cc1"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="135.724246" bottom="-160.304721" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/buff_roll" color="#1ac938"/>
|
|
<curve name="/angle" color="#17becf"/>
|
|
</plot>
|
|
</DockArea>
|
|
</DockSplitter>
|
|
</Container>
|
|
</Tab>
|
|
<Tab containers="1" tab_name="tab4">
|
|
<Container>
|
|
<DockSplitter orientation="-" count="2" sizes="0.5;0.5">
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="3.467481" bottom="-1.709189" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/spd" color="#bcbd22"/>
|
|
<curve name="/fi" color="#1ac938"/>
|
|
<curve name="/spd0" color="#1f77b4"/>
|
|
</plot>
|
|
</DockArea>
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="0.000000" top="0.100000" bottom="-0.100000" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/iou" color="#1f77b4"/>
|
|
</plot>
|
|
</DockArea>
|
|
</DockSplitter>
|
|
</Container>
|
|
</Tab>
|
|
<Tab containers="1" tab_name="tab2">
|
|
<Container>
|
|
<DockSplitter orientation="-" count="1" sizes="1">
|
|
<DockArea name="...">
|
|
<plot mode="TimeSeries" flip_y="false" style="Lines" flip_x="false">
|
|
<range right="30.649625" top="2.270898" bottom="0.803537" left="0.000000"/>
|
|
<limitY/>
|
|
<curve name="/a" color="#1f77b4"/>
|
|
<curve name="/w" color="#d62728"/>
|
|
</plot>
|
|
</DockArea>
|
|
</DockSplitter>
|
|
</Container>
|
|
</Tab>
|
|
<currentTabIndex index="3"/>
|
|
</tabbed_widget>
|
|
<use_relative_time_offset enabled="1"/>
|
|
<!-- - - - - - - - - - - - - - - -->
|
|
<!-- - - - - - - - - - - - - - - -->
|
|
<Plugins>
|
|
<plugin ID="DataLoad CSV">
|
|
<parameters time_axis="" delimiter="0"/>
|
|
</plugin>
|
|
<plugin ID="DataLoad MCAP"/>
|
|
<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"/>
|
|
<selected_topics value=""/>
|
|
</plugin>
|
|
<plugin ID="DataLoad ULog"/>
|
|
<plugin ID="MQTT Subscriber (Mosquitto)"/>
|
|
<plugin ID="ROS2 Topic Subscriber">
|
|
<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"/>
|
|
<selected_topics value=""/>
|
|
</plugin>
|
|
<plugin ID="UDP Server"/>
|
|
<plugin ID="WebSocket Server"/>
|
|
<plugin ID="ZMQ Subscriber"/>
|
|
<plugin ID="Fast Fourier Transform"/>
|
|
<plugin ID="Quaternion to RPY"/>
|
|
<plugin ID="Reactive Script Editor">
|
|
<library code="--[[ Helper function to create a series from arrays

 new_series: a series previously created with ScatterXY.new(name)
 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], use the index of the array.
 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.{X}/position/x
 /trajectory/node.{X}/position/y
 
 where {N} is the index of the array (integer). We can create a reactive series from the array with:
 
 new_series = ScatterXY.new("my_trajectory") 
 CreateSeriesFromArray( new_series, "/trajectory/node", "position/x", "position/y", tracker_time );
--]]

function CreateSeriesFromArray( new_series, prefix, suffix_X, suffix_Y, timestamp )
 
 --- clear previous values
 new_series:clear()
 
 --- 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_y == nil then break end 
 y = series_y:atTime(timestamp)
 
 new_series:push_back(x,y)
 index = index+1
 end
end

--[[ Similar to the built-in function GetSeriesNames(), but select only the names with a give prefix. --]]

function GetSeriesNamesByPrefix(prefix)
 -- GetSeriesNames(9 is a built-in function
 all_names = GetSeriesNames()
 filtered_names = {}
 for i, name in ipairs(all_names) do
 -- check the prefix
 if name:find(prefix, 1, #prefix) then
 table.insert(filtered_names, name);
 end
 end
 return filtered_names
end

--[[ Modify an existing series, applying offsets to all their X and Y values

 series: an existing timeseries, obtained with TimeseriesView.find(name)
 delta_x: offset to apply to each x value
 delta_y: offset to apply to each y value 
 
--]]

function ApplyOffsetInPlace(series, delta_x, delta_y)
 -- use C++ indeces, not Lua indeces
 for index=0, series:size()-1 do
 x,y = series:at(index)
 series:set(index, x + delta_x, y + delta_y)
 end
end
"/>
|
|
<scripts/>
|
|
</plugin>
|
|
<plugin ID="CSV Exporter"/>
|
|
<plugin ID="ROS2 Topic Re-Publisher"/>
|
|
</Plugins>
|
|
<!-- - - - - - - - - - - - - - - -->
|
|
<previouslyLoaded_Datafiles/>
|
|
<previouslyLoaded_Streamer name="UDP Server"/>
|
|
<!-- - - - - - - - - - - - - - - -->
|
|
<customMathEquations/>
|
|
<snippets/>
|
|
<!-- - - - - - - - - - - - - - - -->
|
|
</root>
|
|
|