Giter Site home page Giter Site logo

rpc_module_b's Introduction

RPC module B

Homeworks of RPC module B

Simone Cremasco VR468971

Exercise B1

For this exercise you need to run

roslaunch homework b1.launch

This will open rviz and load the scara urdf which is available in urdf folder.

'fake_link' was needed in order to attach the end effector frame. This also will bring up 2 services for direct and inverse kinematics. In `srv` folder there is the type definition of services `directKinematics` and `inverseKinematics`. The first receive as input the joint values (j1 to j4) and return a Pose message. The second receive as input the operational space position as x, y, z, phi (rotation on z axis as it's the only possible rotation for a scara) and returns the joint values. The scripts for those services are in `script` folder.

Direct kinematics

To ask for direct kinematics run (change 0 0 0 0 with joint values you want)

rosservice call /directKinematics 0 0 0 0

The result will be

pose: 
  position: 
    x: 0.6
    y: 0.0
    z: -0.09999999999999998
  orientation: 
    x: 0.0
    y: 0.0
    z: 0.0
    w: 1.0

Inverse kinematics

To ask for inverse kinematics run (change 0.6 0 -0.1 0 with x y z phi values you want)

rosservice call /inverseKinematics -- 0.6 0 -0.1 0

The result will be

j1: -0.0
j2: 0.0
j3: -0.0
j4: 0.0

Exercise B2

For this exercise you need to run

roslaunch homework b2.launch

This will activate bring up the necessary scripts for move it. Once loaded run

rosrun homework move

By pressing next when requested you can see the result, here's an animation.

In order we have:

  • move to a specific pose
  • move to a specific joint state
  • follow linear cartesian trajectory
  • waypoint trajectory
  • trajectory parallel to xy world plane
  • box on workspace, trajectory will go over it
  • cylinder to ee (not working properly)

rpc_module_b's People

Contributors

creminem94 avatar

Watchers

 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.