Git Product home page Git Product logo

bhand_gazebo's Introduction

This is a package for simulating Barrett hand in Gazebo.

The existing simulation package for Barrett hand does not provide the needed service call to simulate the hand exactly like the hardware. The joint bh_j11_position_controller (spread) only moves the 1st finger on spread.

This package provides the needed action services exactly as the robot in hardware. Also the two spread joints for two fingers are included.

To run the robot in simulation first import the Barrett hand in Gazebo by any existing package. Then run

roslaunch bhand_gazebo bhand_controller_gazebo.launch

The needed topics and action services will be up. nodes:

/bhand_node/command

services:

/bhand_node/actions

To run the robot as in the robot in hardware:

rosservice call /bhand_node/actions <grasp mode>

rosservice call /bhand_node/actions 1

will put the hand in initialization mode. The grasp modes are identified in Service.msg exactly as the hardware.

INIT_HAND = 1 CLOSE_GRASP = 2 OPEN_GRASP = 3 SET_GRASP_1 = 4 SET_GRASP_2 = 5 CLOSE_HALF_GRASP = 6

To run the robot by publishing positions to the topic:

rostopic pub /bhand_node/command sensor_msgs/JointState "header: seq: 0 stamp: {secs: 0, nsecs: 0} frame_id: '' name: ['j11_joint', 'j12_joint', 'j21_joint', 'j22_joint','j32_joint'] position: [0.5 , 0.5, 0.5, 0.5, 1.5] velocity: [0] effort: [0]"

The new bhand_spread_fixed_controller_gazebo.launch file is for the spread fixed barrett hand as the real robot has only one spread joint and the urdf has two spread joints, we have fixed the spread joint just for now. TODO//

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.