ros-naoqi / pepper_dcm_robot

DCM stack integrating tools to control Pepper robot
4 stars 7 forks source link

pepper_dcm_robot

DCM stack integrating tools to control Pepper robot

Installation

.. code-block:: bash

    sudo apt-get install ros-indigo-pepper-robot ros-indigo-pepper-meshes ros-indigo-pepper-control ros-indigo-naoqi-dcm-driver

.. code-block:: bash

    sudo apt-get install ros-indigo-pepper-dcm-bringup

.. code-block:: bash

    sudo apt-get install ros-indigo-pepper-moveit-config

How to use it

Trajectory control

To command your robot remotely with ROS control:

.. code-block:: bash

    roslaunch pepper_dcm_bringup pepper_bringup.launch robot_ip:=<ROBOT_IP>

.. code-block:: bash

    roslaunch naoqi_driver naoqi_driver.launch nao_ip:=<ROBOT_IP>

Control via MoveIt

.. code-block:: bash

    roslaunch pepper_moveit_config moveit_planner.launch

Control via Actionlib

.. code-block:: bash

    rosrun actionlib axclient.py <name of the goal topic of the action server>

example:

.. code-block:: bash

    rosrun actionlib axclient.py /pepper_dcm/LeftArm_controller/follow_joint_trajectory/goal

To choose the controllers you want to load, modify pepper_control/launch/pepper_control_trajectory.launch. The list of implemented controllers, you can find in pepper_control/config/pepper_trajectory_control.yaml. You can start and stop the ros-controllers using the rqt plugin ControllerManager.

Position control

To command joints positions via ROS:

.. code-block:: bash

    roslaunch pepper_dcm_bringup pepper_dcm_bringup_position.launch robot_ip:=<ROBOT_IP>

.. code-block:: bash

    rostopic pub /pepper_dcm/HeadYaw_position_controller/command std_msgs/Float64 "data: 1"