Difference between revisions of "Proj-2013-2014-RobAIR-1/getStarted"

From air
Jump to navigation Jump to search
Line 22: Line 22:
 
|}
 
|}
   
Don't forget to install this application in this folder : /home/fablab/
+
Don't forget to install this application in this folder : /home/fablab/ros_workspace
Yes you know it's so bad but all student write the path directly in their files, so you don't have choice.
+
Yes we know it's so bad but all student write the path directly in their files, so you don't have choice...
   
To run the sound you need to install :
+
If you want to hear Robair spoke, you have to to run the sound so you need to install :
  +
{| class="wikitable centre" width="80%"
sudo apt-get install gstreamer0.10-pocketsphinx ros-hydro-audio-commoni
 
  +
|-
The sound doesn't want to work so i need to modify some files :
 
  +
| align=left | <code><nowiki></nowiki>
- in the files
 
 
sudo apt-get install gstreamer0.10-pocketsphinx ros-hydro-audio-common
  +
<nowiki></nowiki></code>
  +
|}
   
  +
If you download our files to us, you should have no problem. If this is not the case, you need to modify multiple files :
  +
On /home/fablab/ros_workspace/robair_demo/scripts/kb_control.py add this follow instructions :
   
  +
{| class="wikitable centre" width="80%"
Assembly of two new RobAIRs (they will be named soon...)
 
  +
|-
Beginning of the redaction of Software Requirements Specification
 
  +
| align=left | <code><nowiki></nowiki>
ROS environment installed on Ubuntu
 
  +
RobAIR can now move by itself ! (debug in progress)
 
  +
import roslib
Meeting with Amr Alyafi (effective code obtained)
 
  +
  +
if __name__ == '__main__':
  +
keyboard_node = KeyboardNode()
  +
rospy.loginfo("%s running..." % keyboard_node.node_name)
  +
os.system("rosrun sound_play soundplay_node.py &")
  +
keyboard_node.main_loop()
  +
rospy.loginfo("%s stopped." % keyboard_node.node_name)
  +
<nowiki></nowiki></code>
  +
|}

Revision as of 20:28, 9 February 2014

Requirement

About ROS install and to know how ROS is working please go on this page

Packages install

First of all, you need some packages to run graphique interface : You need to install "gevent-websocket" on your computeur. To do this use this command :

sudo pip install gevent-websocket

if u don't have « pip » go on this page and just follow the instructions

after that, you need to install "flask" :

sudo pip install flask

Don't forget to install this application in this folder : /home/fablab/ros_workspace Yes we know it's so bad but all student write the path directly in their files, so you don't have choice...

If you want to hear Robair spoke, you have to to run the sound so you need to install :

sudo apt-get install gstreamer0.10-pocketsphinx ros-hydro-audio-common

If you download our files to us, you should have no problem. If this is not the case, you need to modify multiple files : On /home/fablab/ros_workspace/robair_demo/scripts/kb_control.py add this follow instructions :

import roslib

if __name__ == '__main__':

   keyboard_node = KeyboardNode()
   rospy.loginfo("%s running..." % keyboard_node.node_name)
   os.system("rosrun sound_play soundplay_node.py &")
   keyboard_node.main_loop()
   rospy.loginfo("%s stopped." % keyboard_node.node_name)