Controller for ergoCub gaze
This repository utilizes:
- Eigen,
- Robotology Superbuild,
- iCub Models, and
- Gazebo for simulation.
Follow the links to install each of these.
-
ssh to robot torso:
ssh -X ergocub-torso
-
Install the rpc interfaces by doing the following commands (dependencies):
cd $ROBOT_CODE/hsp && git clone https://github.com/hsp-iit/ergocub-rpc-interfaces cd ergocub-rpc-interfaces/ecub_gaze_controller/cpp_library && mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr/local/src/robot/robotology-superbuild/build/install .. make install -j4
-
Clone the repository to hsp directory:
cd $ROBOT_CODE/hsp && git clone https://github.com/hsp-iit/ergocub-gaze-control.git
- Navigate to the directory:
cd ergocub-gaze-control/
- Create a new
build
directory and navigate to it:
mkdir build && cd build
- Then build the repository:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/src/robot/robotology-superbuild/build/install .. && make install -j4
On the robot torso do:
ergocub-gaze-controller /usr/local/src/robot/hsp/ergocub-gaze-control/config/ecub_config.ini
- Open a new terminal in Ubuntu with
ctrl + alt + t
and start the YARP server:
yarpserver --write
- Open another terminal and run:
gazebo ~/your_workspace_directory/icub-bimanual/gazebo/words/ergocub-grasp-demo.sdf
A model of the ergoCub should launch in Gazebo.
- In a third terminal, navigate to
~/ergocub-gaze-control/build
and run:
./bin/gaze_control ~/directory/to/ergoCub/urdf
If successful, then a yarp port /GazeController
should be open for communication.
- In a fourth terminal, run:
yarp rpc /GazeController
You can now type commands for the robot to execute.
In the terminal where you can yarp rpc /GazeController
, you can type the following:
- look_at: point the camera to a 3D point in the robot frame