- Description
- Report
- Before using the robot
- Using the robot
- Testing the project without the robot
- Cleaning the repository
- Dealing with the crashes
This project is a 2nd year engeneering school project for a group of 7 students. The purpose is to create a vocal assistant which can also take pictures in response to the commands that can be made by voice or codes.
You can find the report about the project in the folder report.
To install all the packages used in this project, please use the command :
$ make install
or
$ pip install -r ./requirements.txt
- Note : Each time you reload the server, you have to reinitiate the camera.
Sometimes, you can have some errors of adress or camera. They are due to the robot servers that need to be reloaded. You can use this command to do it :
$ make reload-server
The camera of reachy must be initiating to make the focus.
In order to do so, you can use the command :
$ make initiate-camera
And then you have to clic on q
key when the focus is good.
- Note : Try not to be in a room with too much light to do it.
A python script allows you to display the last image. You have to open a new shell and use the command :
$ make show-last-picture
Then you go back on the principal shell and you can launch the robot.
A python script allows you to delete the oldest images. In fact, you cannot save all the pictures because of the storage of the robot. So you can use this script which will automatically delete the oldest pictures when the storage is full. This command allows you to chose how many pictures P you want to delete when N pictures have been stored. You have to open a new shell and use the command :
$ make delete-pictures NB_PHOTOS=<N> NB_TO_DELETE=<P>
You can use the reachy robot in many version (with aruco detection, without, ...). Here are the commands to launch the diferent versions of reachy :
$ make reachy-final
$ make reachy-only-aruco
You can test the project without having the robot. For this, we use a fake reachy that only print what he does without doing it concerning the movements. Here are the command to use to launch the diferent versions :
$ make fake-reachy-final
$ make fake-reachy-only-aruco
You can delete all the pitcures and so the tmp directory using the command :
$ make clean-all
Or you can delete only the imported image of reachy that has been imported to create the tmp directory at the begining :
$ make clean
Sometimes, the robot can crash and his motors and not switch-off. If you want to use it again, you can launch any command above. But if you want to switch-off his motors you can use this commands in a python3 temrinal:
> from reachy_sdk import ReachySDK
> reachy = ReachySDK(host='localhost')
> reachy.turn_off('head')