-
Notifications
You must be signed in to change notification settings - Fork 44
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
Plotting Header time #115
Plotting Header time #115
Conversation
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
4abc9df
to
994d255
Compare
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
…/AmrElsersy/ign-gui into plotting-interface-time-tick
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working for me both for topics that have a header and for those which don't. Good job, Amr! I have some small comments below.
I saw this warning, not sure what I did to trigger it:
[GUI] [Wrn] [Application.cc:649] [QT] qrc:/qml/PlottingInterface.qml:328:19: Unable to assign double to QSize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great upon testing. Just some nitpicks. Overall LGTM!
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin is not loading for me anymore, with this error:
[GUI] [Wrn] [Application.cc:649] [QT] qrc:/qml/PlottingInterface.qml:78: TypeError: Type error
This fixes the QML error for me, it's another one of those differences due to the javascript version: diff --git a/include/ignition/gui/qml/Chart.qml b/include/ignition/gui/qml/Chart.qml
index 5403df2..7f3b7cd 100644
--- a/include/ignition/gui/qml/Chart.qml
+++ b/include/ignition/gui/qml/Chart.qml
@@ -485,7 +485,7 @@ Rectangle {
add new series
ID key of the series: path of the field of the series
*/
- function addSeries(ID, seriesDisplayText = "") {
+ function addSeries(ID, seriesDisplayText) {
var seriesName = (seriesDisplayText) ? seriesDisplayText : ID
var newSeries = createSeries(ChartView.SeriesTypeLine, seriesName, xAxis, yAxis);
newSeries.useOpenGL = true; |
Signed-off-by: AmrElsersy <amrelsersay@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me! And it works with gazebosim/gz-sim#270 as well. Great work! Let's wait for @claireyywang 's review.
Signed-off-by: Louise Poubel <louise@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! [UPDATE] I triggered the homebrew CI again which seems to be reflected on the CI below. No extra link needed :D
Improving Plotting performance
Plotting tool time update:
Plotting according to the time that is associated with the header field of the msg if exists
for example, plotting a topic with a header time = sim time, makes the plotting stops if the simulation stops
@chapulina @claireyywang