Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user:kserrakh [2018/06/28 07:57] – kserrakh | user:kserrakh [2026/10/22 23:03] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| - | - Install [[ros|ros kinetic]] | + | - Install [[:ros|ros kinetic]]. The details can be read here : http:// |
| + | sudo sh -c 'echo "deb http:// | ||
| + | sudo apt-key adv --keyserver hkp:// | ||
| + | sudo apt-get install ros-kinetic-desktop-full | ||
| + | </ | ||
| - For the map. Run:< | - For the map. Run:< | ||
| sudo apt-get install ros-kinetic-octomap | sudo apt-get install ros-kinetic-octomap | ||
| Line 94: | Line 98: | ||
| cd / | cd / | ||
| java -jar deltadore.xxd.ipgateway.jar 54321 / | java -jar deltadore.xxd.ipgateway.jar 54321 / | ||
| - | to display local images on the touch screen : | + | |
| + | to display local images on the touch screen, change in the program serveurhttp.py the HOST variable to input your IP address | ||
| cd / | cd / | ||
| python serveurhttp.py | python serveurhttp.py | ||
| + | | ||
| and open a browser and go directly to | and open a browser and go directly to | ||
| - | http://0.0.0.0:9999 | + | http://your_ip_address: |
| - | + | ||
| - | run in terminal: | + | to open the web streaming on the tablet, run in different terminals the following commands or use " |
| + | roscore | ||
| + | cd / | ||
| + | roslaunch naoqi_driver.launch nao_ip:=10.77.3.19 network_interface:=wlp2s0 | ||
| + | | ||
| + | |||
| + | Make sure you use the right dialogue.txt and modele_interaction.py, | ||
| cd / | cd / | ||
| python modele_interaction.py | python modele_interaction.py | ||
| | | ||
| The robot Pepper waits for us to say " | The robot Pepper waits for us to say " | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ====== Control robot by using keyboard ====== | ||
| + | |||
| + | Generic keyboard teleop for twist robots. | ||
| + | |||
| + | ===== Installing ===== | ||
| + | < | ||
| + | sudo apt-get install ros-kinetic-teleop-twist-keyboard | ||
| + | </ | ||
| + | ===== Running ===== | ||
| + | < | ||
| + | rosrun teleop_twist_keyboard teleop_twist_keyboard.py | ||
| + | </ | ||
| + | ===== Controls ===== | ||
| + | See the on-screen instructions: | ||
| + | < | ||
| + | Reading from the keyboard | ||
| + | --------------------------- | ||
| + | Moving around: | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | q/z : increase/ | ||
| + | w/x : increase/ | ||
| + | e/c : increase/ | ||
| + | anything else : stop | ||
| + | |||
| + | CTRL-C to quit | ||
| + | </ | ||
| + | |||
| + | ====== Octomap ====== | ||
| + | General information about OctoMap is available at http:// | ||
| + | ===== Installing ===== | ||
| + | < | ||
| + | sudo apt-get install ros-kinetic-octomap | ||
| + | </ | ||
| + | ===== Running ===== | ||
| + | To create the static map. | ||
| + | Run : | ||
| + | to connect Pepper to ROS (the parameter network_interface needs to be changed according to the network interface with which you connect to the robot Pepper, ie wireless or wired, to check with ifconfig): | ||
| + | < | ||
| + | cd / | ||
| + | roslaunch naoqi_driver.launch nao_ip: | ||
| + | </ | ||
| + | To apply the calibration parameters of the 3D camera : | ||
| + | < | ||
| + | source / | ||
| + | roslaunch extrinsic_calibration register_depth.launch | ||
| + | </ | ||
| + | start Octomap | ||
| + | < | ||
| + | roslaunch octomap_server octomap_mapping.launch | ||
| + | </ | ||
| + | Moving the robot | ||
| + | < | ||
| + | rosrun teleop_twist_keyboard teleop_twist_keyboard.py | ||
| + | </ | ||
| + | To save the map, run: | ||
| + | < | ||
| + | rosrun octomap_server octomap_saver -f / | ||
| + | </ | ||
| + | before **stopping Octomap**. | ||
| + | {{tag> | ||