Coder Social home page Coder Social logo

yanzqing / nao_gazebo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from costashatz/nao_gazebo

0.0 2.0 0.0 235 KB

ROS Packages to simulate Aldebaran's NAO Humanoid in Gazebo through NAOqi Simulator SDK

License: BSD 3-Clause "New" or "Revised" License

CMake 15.12% C++ 84.88%

nao_gazebo's Introduction

#nao_gazebo

##ROS Packages to simulate Aldebaran's NAO Humanoid in Gazebo through NAOqi Simulator SDK

  • Supports all versions and body types of NAO.
  • Written purely in C++.
  • Standalone ROS package

Version

0.0.1 (Beta)

Requirements

nao_gazebo requires several packages to be installed in order to work properly:

  • ROS - ROS >= Hydro
  • ROS Control - Version >=0.6.0 [control_toolbox should be installed]
  • Gazebo - Version 2.2.5 - Should work on newer versions but haven't tested it
  • NAO meshes - For visualization purposes

Building/Compiling

You need to have either environmental variable AL_SIM_DIR or CMake option NAOqi_SIM_DIR pointing to the C++ NAOqi Simulator SDK path.

Also, you need to have either environmental variable AL_DIR or CMake option NAOqi_DIR pointing to the C++ NAOqi SDK path.

Check cmake/FindNAOqiSIM.cmake for more details.

Basic Usage

###Bringup nao_gazebo

roslaunch gazebo_naoqi_control nao_gazebo.launch

This will open up Gazebo with NAO model loaded and simulation paused! You need to open Choregraphe (or any other driver) to give commands to NAO as you would give to a real robot.

BE CAREFUL:

NAO at simulation start up is stiffened off. You need to connect to Choreographe and enable stiffness (wake up the robot), before the robot falls down. DO NOT enable stiffness with the simulation paused. It will cause NAOqi to be stalled and no further commands can be issued!

###Visualize modified model/urdf

roslaunch gazebo_naoqi_control display.launch

This will open up RViz with NAO model loaded for debugging purposes.

URDF Modifications

Please feel free to check models/nao.xacro file for modifying for example sensor properties...

###Plugin SDF elements

  • robotNamespace - provides the robot namespace
  • controlPeriod - control period for reading/writing sensor/actuator values
  • port - port to initialize NAOqi
  • modelType - type of model to load. Check the path in simulator SDK: ${SIMULATOR_SDK}/share/alrobotmodel/models/

###Load plugin in URDF

Classic gazebo model plugin insertion.. See example in models/model.xacro. In practice create a file like model.xacro and tune the xacro properties.

  <gazebo>
    <plugin filename="libgazebo_naoqi_control.so" name="gazebo_naoqi_control">
      <robotNamespace>your_robot_namespace</robotNamespace>
      <controlPeriod>the_control_period_you_wish</controlPeriod> <!-- do not create a field if you wish to use Gazebo's control period -->
      <port>port_to_initialize_naoqi</port>
      <modelType>the_model_you_want</modelType>
    </plugin>
  </gazebo>

NOTE that sensor names must be as they are in nao.xacro file..

Notes/Limitations

  • Tutorials will become available as soon as possible.
  • Cameras, IMU, sonars and FSRs integration is completed, but in beta/testing stage.
  • Fingers/Hand joints are not simulated yet..
  • Integration for LED, IR, Bumper, Tactile and Audio hardware is not available and is not on my agenda. So, feel free to contribute in that direction.
  • I have tested the plugin for V40 and V50 robot models! Using it with older versions should work, but isn't tested!
  • NAO now walks!! Thanks to @jlanca ..

Future Work

  • Integrate Fingers/Hand joints.
  • Investigate if we can bind simulated NAOqi's time with Gazebo's simulated time.
  • Enable stiffness by default when simulation is started.
  • Integration of more sensors.
  • PID values need tuning!!!
  • .....

License

BSD

Copyright (c) 2014-2015, Konstantinos Chatzilygeroudis

nao_gazebo's People

Contributors

costashatz avatar jlanca 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.