Open manuelgitgomes opened 2 years ago
The new/issue154
will be the development branch for this issue.
I created a test (test.py) environment in the previous commit. TODO:
@stateless_test
above the algorithm functions, in order to easily test themWork progress:
stateless_test
)This simple approach seems to extract well the characteristics of the track within the gazebo environment.
This image depicts the probability [0, 1] of the presence of white pixels in each frame.
Needless to say, the spike indicates the car was seeing, at the respective frames, a crossroad. This indicates us that, in a gazebo environment:
Next task is to map these probabilities to the distance of the car to the crossroad.
Me and @Almeida-a started implementing this algorithm in ROS. When doing so, an issue arose as the ml_driving script was being used as a decision making script. To avoid multiple responsibility, a new package was created called prometheus_decision, in which a script receives the steering angle from the cnn, the signal detected and if a detection of a crosswalk is detected. Then, a decision is taken and sent to the robot. Commits will come soon.
A new problem arose: the car should ideally stop when the front wheels are within the area of the first strip of the crosswalk which is closest to the car. This is an issue because it will always coincide within the downward slope region of the bright pixels algorithm's graph -- -- meaning that the robot's reaction to the crosswalk will not be proportional to how much 'white' it sees, contrary to this basic algorithm's goal.
Therefore, a change in approach is due.
Two approaches were brought up to address this matter:
Since the panel is not centered on the right side the car is stopping almost in the correct place, but on the left side it is stopping way behind. Therefore, it is necessary to correct the position of the panel and retest where the car stops.
Changing the height of lcd1 and lc2 from 1m to 1.0856m so that the base of the lcd's are 0.87m from the ground.
The car is stopping in the right place on both sides.
Thanks @TatianaResend! This, however, has not been tested in real life. What do you think, should we reopen it?
Discover and implement a way to detect the crosswalk. See particle filter for detection - @Almeida-a Record video of the car passing on the crosswalk, create package for crosswalk detection - @manuelgitgomes