Difference between revisions of "CBS Demo"
From Healthcare Robotics Wiki
(→Launch Files) |
(→Installation Instructions) |
||
| (16 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
http://gt-ros-pkg.googlecode.com/git/cbsdemo/cbsdemo.rosinstall | http://gt-ros-pkg.googlecode.com/git/cbsdemo/cbsdemo.rosinstall | ||
# rosmake | # rosmake | ||
| − | rosmake rcommander_pr2_gui | + | rosmake rcommander_pr2_gui pr2_interactive_manipulation |
# Checkout private data: | # Checkout private data: | ||
| − | svn co http://svn.hsi.gatech.edu/cckemp/robot1/usr/kelsey kelsey_robot1 | + | svn co http://svn.hsi.gatech.edu/cckemp/robot1/usr/kelsey ~/vcs/kelsey_robot1 |
| + | # Checkout ros overlays: | ||
| + | FIXME: svn co https://code.ros.org/svn/wg-ros-pkg/stacks/pr2_robot/tags/pr2_robot-1.2.4/ ~/vcs/pr2_robot | ||
| + | hg clone -u pr2_robot-1.4.0 http://kforge.ros.org/pr2robot/hg ~/vcs/pr2_robot | ||
# Add overlay for data to private data: | # Add overlay for data to private data: | ||
export ROS_PACKAGE_PATH=$PATH_TO_KELSEY_ROBOT1:$ROS_PACKAGE_PATH | export ROS_PACKAGE_PATH=$PATH_TO_KELSEY_ROBOT1:$ROS_PACKAGE_PATH | ||
| + | # Make robot behaviors link | ||
| + | ln -s vcs/hrl-demo/cbsdemo/robot_behaviors ~/robot_behaviors | ||
| + | # Add apache links | ||
| + | sudo ln -s /u/cbsdemo/vcs/rcommander_pr2/rcommander_web/html /var/www/rweb | ||
| + | sudo ln -s /u/cbsdemo/vcs/hrl_assistive/assistive_teleop/website/ /var/www/assistive | ||
| + | # Make sure clocks are synchronized btw. both robot computers and laptop | ||
| + | ntpdate -q prj1 | ||
| + | # if offset greater than 0.01s, synchronize: | ||
| + | sudo ntpdate prj1 | ||
== Launch Files == | == Launch Files == | ||
| − | + | ||
| + | robot start | ||
roslaunch henry_manipulation henry_manipulation_robot.launch wg:=false | roslaunch henry_manipulation henry_manipulation_robot.launch wg:=false | ||
roslaunch cbsdemo rcommander_robot.launch | roslaunch cbsdemo rcommander_robot.launch | ||
| − | roslaunch hrl_face_adls face_adls.launch subject:= | + | roslaunch hrl_face_adls face_adls.launch subject:=kelsey_1 |
roslaunch assistive_teleop assistive_teleop.launch | roslaunch assistive_teleop assistive_teleop.launch | ||
| + | |||
| + | Old/Don't use: | ||
| + | roslaunch cbsdemo robot.launch | ||
| + | |||
The "dummy_1" argument will change depending on the model (will eventually be henry_1). | The "dummy_1" argument will change depending on the model (will eventually be henry_1). | ||
=== Editing RCommander Behaviors === | === Editing RCommander Behaviors === | ||
| + | # Mount the robot's behaviors directory on the local machine: | ||
sshfs -o idmap=user cbsdemo@prj:/u/cbsdemo/robot_behaviors/Behaviors /home/haidai/Desktop/pr2_behaviors | sshfs -o idmap=user cbsdemo@prj:/u/cbsdemo/robot_behaviors/Behaviors /home/haidai/Desktop/pr2_behaviors | ||
| − | roslaunch | + | |
| + | # Run RCommander | ||
| + | roslaunch rcommander_pr2_gui run_rcommander_pr2.launch | ||
== In browser == | == In browser == | ||
| Line 26: | Line 46: | ||
http://prj/assistive/tab_interface.html | http://prj/assistive/tab_interface.html | ||
| + | |||
| + | http://prm/rweb/rweb.html | ||
| + | |||
| + | http://prm/assistive/tab_interface.html | ||
| + | |||
| + | Change html file to point to your robot (/var/www/rweb/rweb.html). Find this line and change it: | ||
| + | NODE_HANDLE = new ros.NodeHandle("ws://prm:9091"); | ||
| + | |||
| + | Edit /var/www/assistive/tab_interface.html to point to your robot. | ||
== Assistive Teleop Interface == | == Assistive Teleop Interface == | ||
In updated Chrome browser only: | In updated Chrome browser only: | ||
file:///home/kelsey/dev/hrl_assistive/assistive_teleop/website/tab_interface.html | file:///home/kelsey/dev/hrl_assistive/assistive_teleop/website/tab_interface.html | ||
Latest revision as of 01:28, 18 July 2012
Contents |
[edit] Installation Instructions
- Download and run rosinstall file:
http://gt-ros-pkg.googlecode.com/git/cbsdemo/cbsdemo.rosinstall
- rosmake
rosmake rcommander_pr2_gui pr2_interactive_manipulation
- Checkout private data:
svn co http://svn.hsi.gatech.edu/cckemp/robot1/usr/kelsey ~/vcs/kelsey_robot1
- Checkout ros overlays:
FIXME: svn co https://code.ros.org/svn/wg-ros-pkg/stacks/pr2_robot/tags/pr2_robot-1.2.4/ ~/vcs/pr2_robot hg clone -u pr2_robot-1.4.0 http://kforge.ros.org/pr2robot/hg ~/vcs/pr2_robot
- Add overlay for data to private data:
export ROS_PACKAGE_PATH=$PATH_TO_KELSEY_ROBOT1:$ROS_PACKAGE_PATH
- Make robot behaviors link
ln -s vcs/hrl-demo/cbsdemo/robot_behaviors ~/robot_behaviors
- Add apache links
sudo ln -s /u/cbsdemo/vcs/rcommander_pr2/rcommander_web/html /var/www/rweb sudo ln -s /u/cbsdemo/vcs/hrl_assistive/assistive_teleop/website/ /var/www/assistive
- Make sure clocks are synchronized btw. both robot computers and laptop
ntpdate -q prj1
- if offset greater than 0.01s, synchronize:
sudo ntpdate prj1
[edit] Launch Files
robot start roslaunch henry_manipulation henry_manipulation_robot.launch wg:=false roslaunch cbsdemo rcommander_robot.launch roslaunch hrl_face_adls face_adls.launch subject:=kelsey_1 roslaunch assistive_teleop assistive_teleop.launch
Old/Don't use:
roslaunch cbsdemo robot.launch
The "dummy_1" argument will change depending on the model (will eventually be henry_1).
[edit] Editing RCommander Behaviors
- Mount the robot's behaviors directory on the local machine:
sshfs -o idmap=user cbsdemo@prj:/u/cbsdemo/robot_behaviors/Behaviors /home/haidai/Desktop/pr2_behaviors
- Run RCommander
roslaunch rcommander_pr2_gui run_rcommander_pr2.launch
[edit] In browser
http://prj/assistive/tab_interface.html
http://prm/assistive/tab_interface.html
Change html file to point to your robot (/var/www/rweb/rweb.html). Find this line and change it:
NODE_HANDLE = new ros.NodeHandle("ws://prm:9091");
Edit /var/www/assistive/tab_interface.html to point to your robot.
[edit] Assistive Teleop Interface
In updated Chrome browser only: file:///home/kelsey/dev/hrl_assistive/assistive_teleop/website/tab_interface.html