Giter VIP home page Giter VIP logo

ros_interface's Introduction

ros_interface

The purpose of this library is to provide a method of converting standard rl state update functions into ros commands. Experiments have been performed on the Jaco2 7DOF robot & dm_control, though the interface was designed to be general enough for use in other robots or rl environments.

A TCP connection exposes init, step, reset, get_state, home to the robot through interfaces/robot_server.py.

The physical arm is attached via a usb to a machine running jaco_docker. The robot_server and robot must be run from this machine.

Running Jaco Experiments

  1. After creating jaco_robot_net docker using the instructions on github.com/johannah/jaco_docker, you must launch or attach to a running container.

    • Ensure usb connection from robot to computer running docker.

    • Start docker:

      • If running a new docker instance:

        • docker run -it --name jaco_robot --privileged -v /dev/bus/usb:/dev/bus/usb jaco_control
      • To resume a recent docker container:

        • docker ps
        • docker container start <container_id>
      • To attach to a running session:

        • docker exec -it jaco_robot /bin/bash
  2. Turn on robot and use remote to set home (light should turn blue on robot). Launch kinova drivers.

    • roslaunch jaco_remote.launch

    • Robot should open hand.

  3. Running remote experiments.

    • See IBIT. Data is sent via tcp through port 9030 by default.

  1. After experiments. Return robot to sleep position with the remote (press home until the remote returns to home, then press home again to move it to the sleep position), then power off.

Position Info

The origin of the robot is at the intersection point of the bottom plane of the base and cylinder center line. +x axis is directing to the left when facing the base panel (where power switch and cable socket are located). +y axis is towards to user when facing the base panel. +z axis is upwards when robot is standing on a flat surface.

Position of the hand can be found at /j2n7s300_driver/out/tool_pose Current joint angle in degrees /j2n7s300_driver/out/joint_commdnd

ros_interface's People

Contributors

johannah avatar melfm avatar

Stargazers

Samuel Garcin 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.