interface changes
added new data-strcutures for new sensors new helper methods fixed some issues
This commit is contained in:
@@ -49,12 +49,12 @@ public:
|
||||
//gp << "set hidden3d front\n";
|
||||
|
||||
splot.add(&nodes); nodes.setPointSize(0.5);
|
||||
splot.add(&lines); lines.setColorHex("#999999");
|
||||
splot.add(&lines); lines.getStroke().getColor().setHexStr("#999999");
|
||||
splot.add(&floors);
|
||||
splot.add(&particles); particles.setColorHex("#0000ff"); particles.setPointSize(0.5);
|
||||
splot.add(&particles); particles.getColor().setHexStr("#0000ff"); particles.setPointSize(0.5);
|
||||
|
||||
floors.setLineWidth(2);
|
||||
floors.setColorHex("#008800");
|
||||
floors.getStroke().setWidth(2);
|
||||
floors.getStroke().getColor().setHexStr("#008800");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ TEST(TestAll, Nav) {
|
||||
gi.addImportance(g, d.getNode(start), d.getNode(end));
|
||||
|
||||
// plot path
|
||||
K::GnuplotSplotElementLines path; path.setColorHex("#0000ff"); path.setLineWidth(2);
|
||||
K::GnuplotSplotElementLines path; path.getStroke().getColor().setHexStr("#0000ff"); path.getStroke().setWidth(2);
|
||||
const DijkstraNode<GP>* dn = d.getNode(end);
|
||||
while (dn->previous != nullptr) {
|
||||
path.add(K::GnuplotPoint3(dn->element->x_cm, dn->element->y_cm, dn->element->z_cm+50));
|
||||
|
||||
@@ -131,8 +131,8 @@ TEST(GgridWalk2, LIVE_walkHeading) {
|
||||
|
||||
K::Gnuplot gp;
|
||||
K::GnuplotSplot splot;
|
||||
K::GnuplotSplotElementPoints nodes; nodes.setPointSize(0.1); nodes.setColorHex("#888888"); splot.add(&nodes);
|
||||
K::GnuplotSplotElementPoints states; states.setPointSize(0.5); states.setColorHex("#0000ff"); splot.add(&states);
|
||||
K::GnuplotSplotElementPoints nodes; nodes.setPointSize(0.1); nodes.getColor().setHexStr("#888888"); splot.add(&nodes);
|
||||
K::GnuplotSplotElementPoints states; states.setPointSize(0.5); states.getColor().setHexStr("#0000ff"); splot.add(&states);
|
||||
|
||||
for (const MyNode1239& n : grid) {
|
||||
static int cnt = 0;
|
||||
|
||||
@@ -50,8 +50,8 @@ TEST(Stairs, live_testWalk) {
|
||||
|
||||
K::Gnuplot gp;
|
||||
K::GnuplotSplot splot;
|
||||
K::GnuplotSplotElementPoints pnodes; splot.add(&pnodes); pnodes.setColorHex("#888888"); pnodes.setPointType(7);
|
||||
K::GnuplotSplotElementPoints pstates; splot.add(&pstates); pstates.setColorHex("#0000ff"); pstates.setPointType(7); pstates.setPointSize(1);
|
||||
K::GnuplotSplotElementPoints pnodes; splot.add(&pnodes); pnodes.getColor().setHexStr("#888888"); pnodes.setPointType(7);
|
||||
K::GnuplotSplotElementPoints pstates; splot.add(&pstates); pstates.getColor().setHexStr("#0000ff"); pstates.setPointType(7); pstates.setPointSize(1);
|
||||
|
||||
for (int i = 0; i < g.getNumNodes(); i+=2) {
|
||||
const MyNode345092134& gp = g[i];
|
||||
|
||||
@@ -101,7 +101,7 @@ TEST(Walk, DISABLED_plot) {
|
||||
std::normal_distribution<float> dWalk(0.3, 0.3);
|
||||
std::normal_distribution<float> dTurn(0.3, 0.3);
|
||||
|
||||
K::GnuplotSplotElementPoints pStates; pStates.setColorHex("#880000");
|
||||
K::GnuplotSplotElementPoints pStates; pStates.getColor().setHexStr("#880000");
|
||||
|
||||
// setup starting states
|
||||
std::vector<GridWalkState<GP>> states;
|
||||
|
||||
@@ -57,7 +57,7 @@ TEST(Butterworth, offlineSinus) {
|
||||
linesInput.addSegment(input_p1, input_p2);
|
||||
linesOutput.addSegment(output_p1, output_p2);
|
||||
}
|
||||
linesOutput.setColorHex("#00FF00");
|
||||
linesOutput.getStroke().getColor().setHexStr("#00FF00");
|
||||
|
||||
plot.add(&linesInput);
|
||||
plot.add(&linesOutput);
|
||||
@@ -104,7 +104,7 @@ TEST(Butterworth, onlineSinus) {
|
||||
linesInput.addSegment(input_p1, input_p2);
|
||||
linesOutput.addSegment(output_p1, output_p2);
|
||||
}
|
||||
linesOutput.setColorHex("#00FF00");
|
||||
linesOutput.getStroke().getColor().setHexStr("#00FF00");
|
||||
|
||||
plot.add(&linesInput);
|
||||
plot.add(&linesOutput);
|
||||
@@ -171,7 +171,7 @@ TEST(Butterworth, offlineOctaveBaro) {
|
||||
linesInput.addSegment(input_p1, input_p2);
|
||||
linesOutput.addSegment(output_p1, output_p2);
|
||||
}
|
||||
linesOutput.setColorHex("#00FF00");
|
||||
linesOutput.getStroke().getColor().setHexStr("#00FF00");
|
||||
|
||||
plot.add(&linesInput);
|
||||
plot.add(&linesOutput);
|
||||
@@ -242,7 +242,7 @@ TEST(Butterworth, onlineOctaveBaro) {
|
||||
linesInput.addSegment(input_p1, input_p2);
|
||||
linesOutput.addSegment(output_p1, output_p2);
|
||||
}
|
||||
linesOutput.setColorHex("#00FF00");
|
||||
linesOutput.getStroke().getColor().setHexStr("#00FF00");
|
||||
|
||||
plot.add(&linesInput);
|
||||
plot.add(&linesOutput);
|
||||
|
||||
Reference in New Issue
Block a user