Code Monkey home page Code Monkey logo

nao_moveit_config's Introduction

nao_moveit_config

This is a MoveIt! config package generated by the MoveIt! wizard. It requires a NAO model which you can get from here:

https://github.com/ros-nao/nao_robot/tree/master/nao_description or from the binary package : ros-indigo-nao-description

The moveit package must be run on a remote computer and not directly on your robot.

URDF and Textures used

This moveit package is based on a textured nao : https://github.com/vrabaud/nao_meshes_generator

The urdf used for the generation of the configuration files is embedded in this package. It's the same that the one in nao_description : https://github.com/keulYSMB/nao_robot/tree/devel/nao_description/urdf/naoV40_generated_urdf/nao.urdf

1. Compile the packages

nao_moveit_config package doesn't need any compilation so running rospack profile should be enough NOTE : before running this package please install moveit-simple-controller-manager package. Dependency is missing, this will be fixed in 0.0.4

For the dcm and gazebo packages you need to compile the C++ nodes. In order to compile nao_dcm packages, you need to set the environment variable AL_DIR to the path to naoqiSDK-c++ on your computer.

Then you can run the usual

catkin_make

And your ready to play with your nao

2. Run MoveIt

Without robot

You can run this moveit package either unconnected to any robot or attached to a robot (real or simulated): For a standalone execution :

roslaunch nao_moveit_config demo.launch

On a real nao

To launch it on a real nao you need:

First set NAO_IP environment variable to your robot PI address

Modify the bringup configuration file : nao_dcm_bringup/config/nao_dcm.yaml

Set the rosparam "RobotIP" to your Nao's IP address

roslaunch nao_dcm_bringup nao_dcm_H25_bringup_remote.launch

Wait until nao_dcm_bringup is ready then run:

roslaunch nao_moveit_config moveit_planner.launch

On a simulated nao (in gazebo)

To launch it on a gazebo simulated nao you need :
roslaunch nao_dcm_gazebo nao_dcm_gazebo_H25.launch

Wait until nao_gazebo is ready then click on the pla button in gazebo.

Finally run:

roslaunch nao_moveit_config moveit_planner.launch

This is based on the work of Konstantinos Chatzilygeroudis: https://github.com/costashatz/nao_dcm.

3 Use Moveit:

RVIZ has been open: you can see that a MotionPlanning plugin has been launched. First check the box "Allow approximate IK Solutions" on the bottom of the left column. Then click on the Planning tab.

Select which part of the robot you want to move: In the plugin list on the upper part of the left column, you can select a group under MotionPlanning/Planning Request/Planning Group

Now you can define your motion by drag and dropping the interactive markers. You can compute a trajectory by clicking the 'planning' button Once the motion is satisfying you can try it on your real robot using 'execute' or 'plan and execute'.

NOTE: The start state is not updated automatically, you have to go to 'Select Start State' select 'Current' and click 'Update'.

TODO :

Create our own nao_driver/nao_bringup to use moveit with ALMotion

nao_moveit_config's People

Contributors

vrabaud avatar costashatz avatar mikaelarguedas avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.