From a24b6930e40232e131980ed34c4895018d29055b Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 3 Feb 2014 10:55:58 -0800 Subject: Correct documentation and example for 'simExtAutomobileRequestNoise' The documentation string (and README documentation) for 'simExtAutomobileRequestNoise' specified that distance noise was passed before intensity noise. In actuality, the reverse is true. This is an API-compatible change; only the documentation and example have been updated. --- README | 4 ++-- examples/simple.ttt | Bin 509554 -> 509562 bytes src/automobile.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index 8d424b9..266b904 100644 --- a/README +++ b/README @@ -51,8 +51,8 @@ disposal five new Lua functions: incident. - simExtAutomobileRequestNoise(table2 xy, table2 angle, table2 speed, - table2 steeringAngle, table2 distance, - table2 intensity) + table2 steeringAngle, table2 intensity, + table2 distance) Requests that, in addition to the gathered data, the plugin also generate a data set with artificial Gaussian noise added. Should you wish to use this function, we strongly recommend you only call it once per run. The diff --git a/examples/simple.ttt b/examples/simple.ttt index 57c7840..e5c33ea 100644 Binary files a/examples/simple.ttt and b/examples/simple.ttt differ diff --git a/src/automobile.cpp b/src/automobile.cpp index 365c96b..0a639be 100644 --- a/src/automobile.cpp +++ b/src/automobile.cpp @@ -1,5 +1,5 @@ /* automobile.cpp -- recording data about the car - * Copyright (C) 2013 Galois, Inc. + * Copyright (C) 2013, 2014 Galois, Inc. * * This library is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software @@ -170,10 +170,10 @@ void registerLuaFunctions() { std::vector, // angle std::vector, // speed std::vector, // steering angle - std::vector, // distance - std::vector>( // intensity + std::vector, // intensity + std::vector>( // distance "simExtAutomobileRequestNoise", - "simExtAutomobileRequestNoise(table2 xy, table2 angle, table2 speed, table2 steeringAngle, table2 distance, table2 intensity)", + "simExtAutomobileRequestNoise(table2 xy, table2 angle, table2 speed, table2 steeringAngle, table2 intensity, table2 distance)", setNoiseParameters); vrep::exposeFunction( "simExtAutomobileSavePose", -- cgit v1.2.3