View: 2406|Reply: 9

Controls dont work after new install - Mars Rover

[Copy link]

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
Post time 2020-3-31 10:24:25 | Show all posts |Read mode
I just set up the a brand new mars rover and am having issue with the controls. My PC / client is connecting the to Picar but it doesnt seem to be controling it properly. The camera is streaming but I cant move it at all. The forward and back seem to work but I can stop the car once its in motion. The other controls also dont seem to work.

I am using  Rasberry Pi 4 with Buster install.

I have Python 3.7 with all packadges installed using 37 as well.

I do get this below error when connecting the IP on the client. Not sure if its related.


C:\Users\Yoel Felberbaum\Desktop\Silky\Adeept_PiCar-B-V1.0\code\Adeept_PiCar-B-master\client\client.py:55: DeprecationWarning: The binary mode of fromstring isdeprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead


npimg = np.fromstring(img, dtype=np.uint8)

THe LED on the car is always blue, I am able to connect to it via putty and via Client. Any pointers here would be appriciated. I tried everything, using Python 3.8, reinstalling the OS and software on the car. I must be doing something obvious wrong, I just donw know what.


Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2020-4-1 15:49:01 | Show all posts
Hello,

Please run server.py manually on the Raspberry Pi, and then run the client program on the computer to connect to the server and operate the car, and observe if the server reports an error.

Best!
Reply

Use magic Report

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
 Author| Post time 2020-4-6 04:19:35 | Show all posts
Hi,

So I went back and recreated my steps. I did a manual server install, had to make the following changes to get the server.py to run


So first there is an issue with the latest version of open opencv-python version 4.1.1.26

I got the below error

sudo python3.7 Adeept_PiCar-B/server/server.py
Traceback (most recent call last):
  File "Adeept_PiCar-B/server/server.py", line 15, in <module>
    import FPV
  File "/home/pi/Adeept_PiCar-B/server/FPV.py", line 10, in <module>
    import cv2
  File "/usr/local/lib/python3.7/dist-packages/cv2/__init__.py", line 3, in <module>
    from .cv2 import *
ImportError: /usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8

TO RESOLVE I DID THE FOLLOWING

  1. sudo pip3 uninstall opencv-python
Copy the Code

  1. sudo pip3 install opencv-contrib-python==4.1.0.25
Copy the Code


This then left me with another issues

sudo python3.7 Adeept_PiCar-B/server/server.py
Traceback (most recent call last):
  File "Adeept_PiCar-B/server/server.py", line 23, in <module>
    from mpu6050 import mpu6050
ModuleNotFoundError: No module named 'mpu6050'

TO RESOLVE I DID THIS

  1. sudo pip3 install mpu6050-raspberrypi
Copy the Code


Next post is my error

Reply

Use magic Report

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
 Author| Post time 2020-4-6 04:28:54 | Show all posts
Edited by 1585597812 at 2020-4-6 04:30 AM

sudo python3.7 Adeept_PiCar-B/server/server.py
mpu6050 disconnected.
192.168.0.54
waiting for App connection...
192.168.0.54
waiting for connection...
...connected from : ('192.168.0.63', 50058)
192.168.0.63
Right
stop
Left
stop
auto
forward
stop
Stop
stop
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "Adeept_PiCar-B/server/server.py", line 286, in info_send_client
    Info_Socket.connect(SERVER_ADDR)
TimeoutError: [Errno 110] Connection timed out

The server completely ignores the stop command

I also get this on the client side, not sure if its related.
Connecting to server @ 192.168.0.54:10223...
Connecting
Connected
Video Connected
C:\Adeept_PiCar-B-V1.0\code\Adeept_PiCar-B-master\client\client.py:55: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead

  npimg = np.fromstring(img, dtype=np.uint8)

My environment

Raspberry Pi  4-B
Raspbian GNU/Linux 10 (buster) - Newest release
Reply

Use magic Report

0

Threads

5

Posts

21

Credits

Newbie

Rank: 1

Credits
21
Post time 2020-4-9 10:32:19 | Show all posts
The error reported in this place, not a software problem. The stop command is issued after the user releases the key

Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "Adeept_PiCar-B/server/server.py", line 286, in info_send_client
    Info_Socket.connect(SERVER_ADDR)
TimeoutError: [Errno 110] Connection timed out
Reply

Use magic Report

0

Threads

1

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2020-5-4 04:18:07 | Show all posts
Dear 1585597812, dear Lina,

I have exactly the same issue:
I tested the client.py on Windows 10 (and Linux). The video stream is working. The buttons "forward" and "backward" are working. However, ALL other buttons are not working. Particularly, the "stop" button is not working, s.t., the PiCar is just driving forward or backward until it hits a wall.

Hence, the PiCar is useless right now.

Did you find any solution for the problem?

I am looking forward to your advice.
Reply

Use magic Report

0

Threads

1

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2020-7-26 15:09:36 | Show all posts
Same issue here. I am going to do a manual install to see if I can spot any issues., Currently updating the OS
Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-7-30 18:26:35 | Show all posts
The program is newly updated on github. The new version of the document has introduced how to run webServer.py.
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 16:00:47 | Show all posts
1595747227 replied at 2020-7-26 03:09 PM
Same issue here. I am going to do a manual install to see if I can spot any issues., Currently updat ...

Please refer to the latest materials and manuals: https://www.adeept.com/learn/detail-33.html
If your problem has not been resolved, please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com

Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 16:01:05 | Show all posts
1588536168 replied at 2020-5-4 04:18 AM
Dear 1585597812, dear Lina,

I have exactly the same issue:

Please refer to the latest materials and manuals: https://www.adeept.com/learn/detail-33.html
If your problem has not been resolved, please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules