GithubHelp home page GithubHelp logo

imontesino / roboespas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roboticslab-uc3m/roboespas

0.0 1.0 0.0 233.66 MB

CMake 1.57% C++ 25.53% MATLAB 34.39% C 8.08% CSS 0.64% POV-Ray SDL 29.78%

roboespas's Introduction

Requirements

Ubuntu RT patch

Check your current kernel version uname -a If it is not a RT kernel version (it does not contain the word "RT"), install the RT patch. Follow the instructions here: https://stackoverflow.com/questions/51669724/install-rt-linux-patch-for-ubuntu. To choose the RT kernel version, select the next kernel version which has a RT patch here: https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/. For example, if uname -a returned 4.15.0-112-generic, choose RT kernel 4.16.18-rt12.

ROS Kinetic

http://wiki.ros.org/kinetic/Installation/Ubuntu

Configuration

  • Download the repo
git clone https://github.com/roboticslab-uc3m/roboespas
  • Change to develop if necessary
git checkout develop
  • Modify .bashrc to use this workspace and set the ROS_IP and ROS_WORKSPACE env variables. Change the IP for your IP (check it using ifconfig).
export ROS_WORKSPACE=~/your_ws    #edit for your workspace
export ROS_MASTER_URI=http://192.168.1.53:11311   #edit for your IP
export ROS_IP=192.168.1.53  #edit for your IP
  • Compile and install FRI-Client-SDK
roscd
cd src/iiwa_fri/FRI-Client-SDK_Cpp/
mkdir build
cd build
cmake ..
make -j8
sudo make install
  • Fix Eigen dependencies

  • Compile the ROS workspace

roscd
catkin_make
  • Re-generate messages (jump to 3 if you have not generate matlab messages before)
  1. Delete previously created messages. In Matlab prompt
rosgenmsg('/home/user/your_ws/src/roboespas')

Open javaclasspath.txt file that you are linked and delete all the content. Delete /home/user/your_ws/src/roboespas/matlab_gen folder.

  1. Restart Matlab

  2. Generate messages

rosgenmsg('/home/user/your_ws/src/roboespas')

Follow the instructions (add to javaclasspath.txt the files given, and add to path the folder) 4. Restart Matlab.

Torque command example

Option 1: Control iiwa_gazebo without using iiwa_command action server

This way Matlab will send joint torque values point by point.

  • Execute in a terminal: roslaunch iiwa_command iiwa_command_gazebo.launch. Although you won't use iiwa_command action server, you need to use the launcher to load config parameters.

  • In Matlab, modify the IP in the file TorqueControlExample.m (lines 6-7) inside the TorqueControlExample folder, then play the script and watch IIWA in Gazebo simulator moving.

Option 2:Control iiwa_gazebo using iiwa_command action lib

This way Matlab will send joint torque values all together as a trajectory.

  • Execute in a terminal: roslaunch iiwa_command iiwa_command_gazebo.launch.

  • In Matlab, modify the IP in the file TrajectoryTorqueControlExample.m (lines 6-7) inside the TorqueControlExample folder, then play the script and watch IIWA in Gazebo simulator moving.

Other files used

Dataset trajectories:

https://drive.google.com/drive/folders/1mvBHLigwaf9ykC70j0tyhNbo1mdIiZAx

Extreme Learning Machine

https://es.mathworks.com/matlabcentral/fileexchange/69812-extreme-learning-machine-for-classification-and-regression

roboespas's People

Contributors

angordil avatar gavs1992 avatar leytha avatar peterbowman 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.