hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.33k stars 1.48k forks source link

Problem in movement of car #184

Open ShwetaLalwani opened 5 years ago

ShwetaLalwani commented 5 years ago

Hi, While running collect_training_data.py,everything is working fine. When I'm placing my car in hands, wheels are properly moving in forward reverse left right direction,... But when I'm placing my car on floor , it is only moving in forward and reverse direction. What must be the problem?

VishalWrench commented 5 years ago

It might have low battery( change batteries) or it can't bear the weight u put on them like pi and power bank.

On Sun 31 Mar, 2019, 1:25 AM ShwetaLalwani <notifications@github.com wrote:

Hi, While running collect_training_data.py,everything is working fine. When I'm placing my car in hands, wheels are properly moving in forward reverse left right direction,... But when I'm placing my car on floor , it is only moving in forward and reverse direction. What must be the problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/184, or mute the thread https://github.com/notifications/unsubscribe-auth/At7cbtr0GlijX3ZORGy3FQZtcmY_bXbdks5vb8EwgaJpZM4cT8AI .

ShwetaLalwani commented 5 years ago

Thank you so much .. I charged my battery and now it's moving in all directions :)

ShwetaLalwani commented 5 years ago

Hi, after running rc_driven_nn_only.py ,I'm getting this error- module object has no attribute ml. What should I do to remove this ?

VishalWrench commented 5 years ago

Attach the screenshot of whole error u got

On Sat 6 Apr, 2019, 10:14 AM ShwetaLalwani <notifications@github.com wrote:

Hi, after running rc_driven_nn_only.py ,I'm getting this error- module object has no attribute ml. What should I do to remove this ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/184#issuecomment-480473887, or mute the thread https://github.com/notifications/unsubscribe-auth/At7cbiMIDpmWu5Xy_kn5ovn_BvIKO1C_ks5veCYzgaJpZM4cT8AI .

ShwetaLalwani commented 5 years ago

2019-04-06-113000_1364x768_scrot

VishalWrench commented 5 years ago

It may be open cv version issue problem try to downgrade opencv

On Sat 6 Apr, 2019, 11:42 AM ShwetaLalwani <notifications@github.com wrote:

[image: 2019-04-06-113000_1364x768_scrot] https://user-images.githubusercontent.com/48839546/55665632-eeeb1800-5860-11e9-8617-e6135eb5766a.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/184#issuecomment-480477863, or mute the thread https://github.com/notifications/unsubscribe-auth/At7cbrio9njFTthdlh-AplU3-PFsb-Mgks5veDq5gaJpZM4cT8AI .

ShwetaLalwani commented 5 years ago

Downgrade to which version? Now my OpenCV version is 3.4.4

ShwetaLalwani commented 5 years ago

Ok that error is solved. Now I'm getting this error-. 20190410_013031

ShwetaLalwani commented 5 years ago

My car is moving only in forward direction. Plz help. @hamuchiwa

sundar19 commented 5 years ago

@ShwetaLalwani rc_driver_nn_only.py should be run on your computer and not RPi

arpitpartani commented 5 years ago

while running collect_training_data.py my car is not moving with computer arrow buttons , hence not collecting frames

arpitpartani commented 5 years ago

pls help @ShwetaLalwani @VishalWrench

ShwetaLalwani commented 5 years ago

@arpitpartani first you have to run collect_training_data.py and then in other terminal run stream_client.py ,then a pygame window along with a streaming window will pop up. Click on pygame window and then click the arrow keys to move your car. When your data collection is done press x or q to exit from pygame window and then press q to exit from streaming window , your saved frames and lost frames will then be displayed on terminal window.

arpitpartani commented 5 years ago

exactly we are doing @ShwetaLalwani but its not working

can u share your collect_training_data.py code

ShwetaLalwani commented 5 years ago

@arpitpartani actually I've done my whole project on raspberry pi, I haven't used Arduino. So my code is a bit different than this, but the procedure is same . I've only changed the pins according to my dc motor pins and removed the Arduino part. Rest is same as collect_training_data.py. Tell me what error are u getting?

arpitpartani commented 5 years ago

Atleast send the code

On Wed 26 Jun, 2019, 2:18 PM ShwetaLalwani, notifications@github.com wrote:

@arpitpartani https://github.com/arpitpartani actually I've done my whole project on raspberry pi, I haven't used Arduino. So my code is a bit different than this, but the procedure is same . I've only changed the pins according to my dc motor pins and removed the Arduino part. Rest is same as collect_training_data.py. Tell me what error are u getting?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hamuchiwa/AutoRCCar/issues/184?email_source=notifications&email_token=AH7SX3T7A5R4LV6WJEXJ64LP4MUMVA5CNFSM4HCPYAEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYS2BXQ#issuecomment-505782494, or mute the thread https://github.com/notifications/unsubscribe-auth/AH7SX3UES7R7GSVTEQEWFNDP4MUMVANCNFSM4HCPYAEA .

Yoganandhan01 commented 4 years ago

@arpitpartani I am also having the same problem after running collect_training_data.py file and model_training.py after I'm running the rc_driver.py my car only goes on straight line it does not follow the lane..?

Yoganandhan01 commented 4 years ago

@arpitpartani can you explain the file "train_predict_test.ipynb" the jupyter notebook file in model_train_test folder..?