diff options
author | Benjamin Barenblat <bbarenblat@galois.com> | 2014-02-03 10:55:58 -0800 |
---|---|---|
committer | Benjamin Barenblat <bbarenblat@galois.com> | 2014-02-03 11:32:09 -0800 |
commit | a24b6930e40232e131980ed34c4895018d29055b (patch) | |
tree | 94bb00ec77837ca0997beb417c67cba742a1bd00 | |
parent | 50969a223482384ea98bf0ca234d52f778f85c18 (diff) |
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.
-rw-r--r-- | README | 4 | ||||
-rw-r--r-- | examples/simple.ttt | bin | 509554 -> 509562 bytes | |||
-rw-r--r-- | src/automobile.cpp | 8 |
3 files changed, 6 insertions, 6 deletions
@@ -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 Binary files differindex 57c7840..e5c33ea 100644 --- a/examples/simple.ttt +++ b/examples/simple.ttt 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<float>, // angle std::vector<float>, // speed std::vector<float>, // steering angle - std::vector<float>, // distance - std::vector<float>>( // intensity + std::vector<float>, // intensity + std::vector<float>>( // 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<float, float, float, float>( "simExtAutomobileSavePose", |