Affonso-Gui / scratch3-ros

Experimental ROS Extension for Scratch 3
14 stars 7 forks source link

ROS Extension for Scratch 3

This Project has been moved to https://github.com/Affonso-Gui/scratch-vm/tree/develop/src/extensions/scratch3_ros

WORK IN PROGRESS

scratch3-ros

Run from browser

Access https://affonso-gui.github.io/scratch-gui.

MALFUNCTION on ROS connection

Run from source

sudo apt install npm # Tested with versions 6.4.0 and 10.12.0
mkdir Scratch; cd Scratch
git clone https://github.com/Affonso-Gui/scratch-vm.git
git clone https://github.com/Affonso-Gui/scratch-gui.git

cd scratch-vm
npm install
npm link

cd ../scratch-gui
npm install
npm link scratch-vm
npm start

Then, access http://localhost:8601.

Basic Usage

Basic inverse kinematics sample from tork_moveit_tutorial using MoveGroupCommander interface is reproduced in Scratch 3 and shown below.

tork_example

TODO: Add scratch built-in documentation

Demo Program

This repository have sample programs and launch files for using Scratch 3 ROS extension to control PR2 robot.

To run demos launch demo.launch on a terminal and load files places on examples/ from Scratch 3.

pr2_cup_demo

TODO: add turtlesim and turtlebot demos