Comments (3)
Hi,
Thanks for raising this issue.
In general the "feature" of maxSpeedOnAcceleration should only limit the actual acceleration. So yes, your statement is totally correct. The suggested changes will enforce this.
I would even go a step further and state that, theoretically, the configuration with currentSpeed >= maxSpeedOnAcceleration && acceleration<0 should never be called (that's most probably why this was not considered by the code). But when looking into calculateTimeToCoverDistance where calculateTimeForDistance is called, I see this:
result = calculateTimeForDistance(
speedAfterResponseTime, maxSpeedOnAcceleration, aAfterResponseTime, remainingDistance, requiredTime);
where the the described configuration actually can happen!
So this line of code should also change to:
result = calculateTimeForDistance(
speedAfterResponseTime, std::numeric_limits::max(), aAfterResponseTime, remainingDistance, requiredTime);
because it considers the deceleration AFTER the response time where it doesn't matter what maxSpeedOnAcceleation value is provided.
So without having tested it, I'd say you are totally right and would rate this a bug to be fixed.
from ad-rss-lib.
Hi, thank you for your reply,
I notice that calculateTimeForDistance is called twice in calculateTimeToCoverDistance. For the 2nd calculateTimeForDistance, yes, it's in deceleration phase; but for the first one:
result = calculateTimeForDistance(
currentSpeed, maxSpeedOnAcceleration, aUntilResponseTime, distanceToCover, requiredTime);
maybe currentSpeed >= maxSpeedOnAcceleration && acceleration<0 is still possible?
from ad-rss-lib.
Hi,
no the first one cannot become negative, because it's the acceleration within the response time which is >=0. While response time the worst expected case is considered, where the accel_max parameter is an upper border of it. And in the calculations only that border is of relevance.
But for sure, I'll adapt both lines of code when fixing.
from ad-rss-lib.
Related Issues (20)
- Use standard from CMake HOT 1
- Can the Ad-RSS-lib be used/integrate with other simulators like LGSVL/ROS world HOT 1
- Is it possible to use ad-rss-lib with only LiDAR as an input? HOT 1
- LaneDirection estimation in RssObjectPositionExtractor::newLaneSegment HOT 2
- cmake ad_physics error HOT 1
- Always returning safe except when the Ego vehicle hits the leading vehicle HOT 2
- Issue with colcon building (duplicated dependency package spdlog) HOT 2
- "×××××× spdlog.cpp.o"can not be used when making a shared object; recompile with -fPIC HOT 3
- Carla-RSS "Build" process HOT 5
- Is this project dead? HOT 1
- No doxygen doku of map integration
- Question: Init object by metric coordinates in map_integration HOT 2
- Suppress spdlog HOT 2
- RSS Sensor crashes Carla Simulator-0.9.13 HOT 2
- Extended logging / response a log from RssCheck HOT 2
- Clang-format update HOT 1
- questoins about rss-lib document HOT 8
- compile error of boost lib HOT 2
- fatal error: odrSpiral.h: No such file or directory
- Unclear usage in the python example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ad-rss-lib.