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
poppy_software [2015/12/09 15:31]
127.0.0.1 external edit
poppy_software [2019/05/17 13:08] (current)
mai [Control the robot] spelling
Line 18: Line 18:
 A good guide can be found here: https://​github.com/​HumaRobotics/​poppy-examples/​blob/​master/​doc/​softwareGuide/​softwareGuide.pdf. More  technical details about pypot, you can look at [[http://​poppy-project.github.io/​pypot/​intro.html#​installation|installation of pypot]]. A good guide can be found here: https://​github.com/​HumaRobotics/​poppy-examples/​blob/​master/​doc/​softwareGuide/​softwareGuide.pdf. More  technical details about pypot, you can look at [[http://​poppy-project.github.io/​pypot/​intro.html#​installation|installation of pypot]].
  
-<​hidden ​In detail, this is  how I installed the software  ​+++++ In detail, this is  how I installed the software  ​
   * install pip https://​pip.pypa.io/​en/​latest/​installing.html   * install pip https://​pip.pypa.io/​en/​latest/​installing.html
   * install the python pypot library : <​code>​sudo easy_install pypot</​code>​ or <​code>​sudo pip install pypot</​code>​   * install the python pypot library : <​code>​sudo easy_install pypot</​code>​ or <​code>​sudo pip install pypot</​code>​
Line 31: Line 31:
 </​code>​ </​code>​
  
-</​hidden>​+++++
  
  
Line 42: Line 42:
 print dxl_io_lower.scan(range(60)) print dxl_io_lower.scan(range(60))
 </​code>​ </​code>​
 +
 +===== Embedded odroid =====
 +
 +The poppy humanoid has an embedded [[odroid xu 4]], where these libraries have been installed (pypot and poppy-humanoid).
 +You can log to the computer by ssh using the network labo-sid: odroid@poppy1 (mdp: odroid)
 +
 +The new Poppy from february 2017 has a Rasberry Pi 3 instead of odroid xu 4. As the ethernet port is not available, the connexion to the Rasberry Pi is done using Wifi. If your wifi network is not known by the robot, you need to plug a keyboard to the Rasberry Pi and use the touchscreen to configure the new connexion. ​
 +Once the computer and the robot are in the same network, you can log to the robot using ssh: poppy@poppy.local (mdp: poppy).
 +Note that if you want to manage the wifi networks configurations of the robot in ssh, you need to modify the file: /​etc/​wpa_supplicant/​wpa_supplicant.conf.
  
 ===== First program ===== ===== First program =====
Line 76: Line 85:
 time.sleep(5) time.sleep(5)
 </​code>​ </​code>​
-  * to record and replay a movement ​http://​poppy-project.github.io/​poppy-docs/​pypot/​doc/​quickstart-primitive.html and https://​poppy-project.github.io/​pypot/​move.html. +  * to record and replay a movement ​ https://​poppy-project.github.io/​pypot/​move.html. 
-<​hidden ​code<code Python>​ +++++  ​code<code Python>​ 
-importer des fonctions+#importer des fonctions
 import time import time
 import math import math
Line 133: Line 142:
 move_player.start() move_player.start()
 </​code>​ </​code>​
-</​hidden> ​+++++
  
 Other examples can be tested from https://​github.com/​HumaRobotics/​poppy-examples Other examples can be tested from https://​github.com/​HumaRobotics/​poppy-examples
  
 +
 +===== Control the robot =====
 +
 +You have several ways to control the Poppy robot, using pre-built Pypot methods/​class:​
 +  * Setting the //​goal_position//​ attribute: the joint will immediately try to go as close to the goal as possible (given the angle limits) w.r.t the maximum speed allowed on this joint (which is set via the //​moving_speed//​ attribute). This will not take the //​present_speed//​ attribute of the joint into account;
 +  * Setting the //​goal_speed//​ attribute: the joint will immediately set the speed of the joint to the given value, replacing the current //​goal_position//​ with the angle limit corresponding to the speed direction;
 +  * Using the //​goto_position(goal,​time)//​ method: this will actually set the //​goal_position//​ to the given goal value, and also set the //​moving_speed//​ of the joint to (goal - present_position)/​t;​
 +  * Using the higher level //​MovePlayer//​ class: this class implements a //​LoopPrimitive//​ in order to update frequently the //​goal_position//​ attribute of the joint (N.B: the //​moving_speed//​ attribute __**is not modified**__ by the class when playing the motion and the robot __**will keep in mind the last //​moving_speed//​**__ sent).
 +
 +If the //​moving_speed//​ attribute is set to 0, then the joint will move at full speed (N.B: If you're unsure of the //​moving_speed//​ you sent last to the robot and want to play a movement using //​MovePlayer//,​ it is **__recommended__** to initially set the //​moving_speed//​ of all the involved joints to 0.0).
  
  • poppy_software.1449675102.txt.gz
  • Last modified: 2019/04/25 14:08
  • (external edit)