Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
mobile_vehicule [2015/12/07 12:34]
nfave [Requirements]
mobile_vehicule [2016/02/19 13:41]
nfave [Known problems]
Line 1: Line 1:
 ====== Mobile Vehicle ====== ====== Mobile Vehicle ======
  
-This sub-projects targets the displacement of the robot. The mobile robot can follow someone or go to a specific destination while avoiding collisions. It uses a kinect in order to detect the people and the objects. The robot uses an [[arduino|Arduino]] Due micro-controller.+This sub-projects targets the displacement of the robot. The mobile robot can follow someone or go to a specific destination while avoiding collisions. It uses a kinect in order to detect the people and the objects. ​ 
 +The robot is a yellow FiveBOT003 Omni 3 Wheel Drive Robotic Platform {{::​0-fb003_quick-start.pdf|}}.  
 +The robot uses an [[arduino|Arduino]] Due micro-controller.
  
  
-{{tag>​project robot}}+{{tag>​project robot, hardware}}
  
 ===== Requirements ===== ===== Requirements =====
Line 14: Line 16:
  
 To finish, you have to install the last version of the [[arduino|Arduino IDE]] on your computer https://​www.arduino.cc/​en/​Main/​Software. ​ To finish, you have to install the last version of the [[arduino|Arduino IDE]] on your computer https://​www.arduino.cc/​en/​Main/​Software. ​
 +
  
 ===== Connections ===== ===== Connections =====
  
-Check connections+====Encoders ​connections==== 
 +{{:​encoder_connexion.png?​1200|}}
  
-===== Instructions =====+====Motors connections==== 
 +{{:​motor_control.png?​1200|}}
  
-To translate 
  
-  - Connecter le cable micro usb à l'​arduino. +===== Instructions =====
-  - Ouvrez un autre terminal et lancer la commande roscore +
-  - Ouvrez un autre terminal et lancer la commande rosrun rosserial_python serial_node.py /​dev/​ttyACM0 _baud:=115200 +
-  - Ouvrez un autre terminal, lancez la commande source ~/​catkin_ws/​devel/​setup.bash +
-  - Dans ce même terminal, lancez la commande rosrun openni_tracker_modified openni_tracker_modified +
-  - Faites la pose Psi devant la kinect, jusqu'​à ce qu'un message indique que la calibration a été effectuée +
-  - En vous éloignant ou en vous rapprochant de la kinect, cela doit activer ou non les moteurs du robot. +
-  - Vous pouvez observer les topics torsoPosition et chatter pour connaitre votre position selon l point de vu de la kinect ou du robot. Pour cela, lancer dans un autre teminal la commande rostopic echo <nom de votre topic> +
- +
- +
-Modification du code openni_tracker_modified (kinect) +
- +
-  - Allez dans le repertoire ~/​catkin_ws/​src/​openni_tracker_modified/​src/​openni_tracker_modified.cpp,​ puis faites vos modifications.  +
-  - Il faut ensuite dans un terminal faire la commande source ~/​catkin_ws/​devel/​setup.bash si ce n'est pas déjà fait, puis allez dans le repertoire catkin_ws et lancer la commande catkin_make.+
  
 +  - Connect the computer to the arduino Due
 +  - Open a console and enter the command "​roscore"​
 +  - Open a new console and enter the command "​rosrun rosserial_python serial_node.py /​dev/​ttyACM0 _baud:​=115200"​
 +  - [...]
 +  - Supply the platform with a 12V supplier
 +  - Do the Psi pose in front of the kinect, until you are detected.
 +  - When you move away from the robot, the robot will follow you. Inversely, when you get closer to the robot, he will go away. Moreover, the robot will turn toward you if you move.
 +  - If you want to debug the program, there is a Ros topic used by the platform to give indications of what it is doing. In order to listen this topic, open a new console and enter the command rostopic echo /chatter
  
-Modification du code arduino (robot)+===== Known problems =====
  
-  ​Dans un terminalaller dans le repertoire arduino-1.6.5/ et lancer la commande sudo ./arduino +When you are uploading the code on the arsuino Duebe sure to have stop the rosserial_python process
-  Vérifier que la carte est la bonne (arduino dueansi que le port (arduino due programing port) +If the wheels are turning in the bad way, are too fast or are trembling, check the connections of the motors supply ​(AO1 and AO2and the connections of the encoders.
-  - Vérifiez puis téléverser le code+
  
 ===== Source Code ===== ===== Source Code =====
  • mobile_vehicule.txt
  • Last modified: 2019/04/25 14:08
  • (external edit)