Giter VIP home page Giter VIP logo

pose-task's Introduction

Pose-Task

Repository for a specific pose request to a generic robot.

Scope

The package allows to perform a specific pose using this Pose_Task file in yaml format. A ROS Service Server it's responsable to read the file and send the information to the ROS client that will generate a trajectory in the joint space to the robot using XBotCore.

Start

Clone and build the pose project: there are several options to do it, but probably the easiest is using the catkin build tool from ROS.

mkdir -p ~/src/catkin_pose_ws/src
cd ~/src/catkin_pose_ws/src
catkin_init_workspace
git clone https://github.com/ADVRHumanoids/Pose-Task.git
cd ..
catkin_make

Run

The selected robot was Centauro, whose basic config file can be set in this way:

set_xbot_config /opt/xbot/build/install/share/xbot/configs/CentauroConfig/centauro_basic.yaml

Note: It's possible to choose any robot, it's important to select the right joints with the specific movements writing them into the pose yaml file:

Pose Name:
      Movements: [Move_1, Move_2,...]
      Move_1:
      JointNameMov: ["joint_name1","joint_name2",...]
      PositionNameMov: [pos_joint_name1,pos_joint_name2,...]
      TimeMov: [Time_to_Exe the Trajectory]

As first thing you should run roscore:

roscore

Later on you can start the XBotCore in "dummy" mode in another terminal (more information here) in this way:

XBotCore -D

In another terminal you can use the RViZ tool to visualize the kinematic simulation of the robot by running:

rviz

and adding a "RobotModel" with the following Robot Description: xbotcore/robot_description Remind to select "world" for "Fixed Frame" in "Global Options".

This should be the visualization:

XBotCore basic example with Centauro

Start XBot Communication Plugin:

rosservice call /xbotcore/XBotCommunicationPlugin_switch 1

In another two terminals launch:

. ~/src/catkin_pose_ws/devel/setup.bash

Terminal 1:

        rosrun pose pose_targetSrv   

Terminal 2:

        rosrun pose pose_talker Centauro_Hello_Pose 

Result

This should be the visualization:

XBotCore basic example with Centauro

pose-task's People

Contributors

davideantonucci avatar alaurenzi avatar liesrock avatar

Watchers

James Cloos avatar  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.