GithubHelp home page GithubHelp logo

curtiswest / pr2_toto_ws Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 578 KB

Converts the PR2 robot into a Toto-compatible robot for the Gazebo sim

CMake 2.79% Makefile 15.48% Python 0.05% C++ 70.31% Objective-C++ 4.71% C 4.77% Objective-C 0.93% Shell 0.97%

pr2_toto_ws's Introduction

This workspace is used to simulate the PR2 robot with a compatible sensor suite with that of the Toto robot, with 12 sonar senors.

Known limitations:

  1. Sonar sensors 8 & 9 are not implemented and only return max distance (255cm)
  2. Sonar sensors 7 & 10 are only a 10-degree wedge, rather than 30-degree wedges found with other sensors.

Installation:

These are the installation instruction for Ubuntu Trusty (14.04). If using a different operating system, Step 4 may have a different folder name but the steps are the same.

  1. Clone the repo to your computer to an easily accessible place (suggested: ~/) git clone --recursive -j8 https://github.com/curtiswest/pr2_toto_ws.git

  2. Make the workspace with cd pr2_toto_ws

    catkin_make

  3. Source the generated setup script source devel/setup.bash

  4. Setup the switchmotion machine to be executable

  5. Open the folder /devel/lib

    cd devel/lib

  6. Create the directory for switchmotion.machine

`mkdir -p switchmotion.machine/Linux-x86_64/`
  1. Copy the file libswitchmotion.so twice
`cp libswitchmotion.so switchmotion.machine/Linux-x86_64/switchmotion.so`

`cp libswitchmotion.so switchmotion.machine/Linux-x86_64/switchmotion`
  1. Build the llfsms

    cd ~/pr2_toto_ws/machines

    bmake

  2. Execute the simulation with the following commands, from the root directory of the pr2_toto_ws. NOTE: if you haven't sourced devel/setup.bash within your ~/.bashrc, you will need to run source devel/setup.bash in each new terminal you run these commands from.

    roscore

    roslaunch pr2_toto pr2_world.launch

    After Gazebo initalises, execute one of the following,

     ./devel/lib/pr2_laserscan_to_toto_sonar/pr2_laserscan_to_toto_sonar_node
    
     ./devel/lib/pr2_laserscan_to_toto_sonar/pr2_fullrangelaserscan_to_toto_sonar_node
    

    After sensor converter intialises, open terminal in machines directory:

    cd ~/pr2_toto_ws/machines

    ../devel/lib/clfsm/clfsm -v ../devel/lib/switchmotion.machine stroll.machine/ avoid.machine/

pr2_toto_ws's People

Contributors

curtiswest 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.