Modules

Qwt-dislpay

Presentation

This module can plot curves of any scalar urbiscript value that changes over time. Multiple plots can be drawn on the same window.

Dependencies

Qt and qwt (packaged in most linux distributions).

Compiling

umake-shared -o qdisplay.so qdisplay.cc -c --package=QtCore --package=QtGui

Usage

var disp = QDisplay.new("headYaw.val"); // creates a window displaying headYaw.val
disp.points = 500; // limit to 500 points (default: unlimited)
disp.addCurve("headPitch.val"); // add a second curve to the window
disp.addCurveEx("headPitch.val", /*xSCaleFactor*/ 1, /*multFactor*/ 1, /*offset*/ pi);
// addCurveEx adds a second curve with options to rescale it.
// Each point is duplicated xScaleFactor times to account for different
// sample rates with the first curve.
// The curve is then rescaled using the formula y = y*multFactor + offset. 

Download qdisplay.cc

Options: