-
 
No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.
No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.

scratch4robots package from scratch4robots repo

scratch4robots

Package Summary

Tags No category tags.
Version 0.0.2
License GPL v3
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/JdeRobot/Scratch4Robots.git
VCS Type git
VCS Version master
Last Updated 2018-10-21
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

scratch4robots

Additional Links

No additional links.

Maintainers

  • Santiago Carrion

Authors

  • Raul Perula-Martinez
  • Santiago Carrion

Scratch4Robots

Full installation video

Scratch4Robots

Prerequisites

Scratch 2.0

wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
chmod +x adobe-air.sh; sudo ./adobe-air.sh

Download the scratch file from here: https://scratch.mit.edu/scratchr2/static/sa/Scratch-456.0.2.air and then double click to install it.

ROS

Follow the ROS tutorial installation: http://wiki.ros.org/kinetic/Installation/Ubuntu

Python requirements

pip install -r requirements.txt

Gazebo and worlds

Follow the Gazebo tutorial installation: http://gazebosim.org/tutorials?tut=install_ubuntu

With this line we get some prepared worlds based on ROS ready to use:

sudo apt-get install ros-${ROS_DISTRO}-kobuki-gazebo

Installing

Install our ROS package

sudo apt-get install ros-kinetic-scratch4robots

Install Scartch4Robots extension to use in Scratch

In scratch keep pressing shift key while you click on “File” > “Import experimental HTTP extension” and add our extension. The extension will be stored in the “extension” directory of your package.

Note: This step is necessary each time you initialize Scratch

Download the tool from git

Here you will find some usefull examples.

git clone https://github.com/JdeRobot/Scratch4Robots.git

How to Use

Make a scratch project

Make a scratch project and save it.

Make the translation from Scratch to python

Generate the code:

rosrun scratch4robots scratch2python /path/to/your/scratchproject.sb2

This command will generate the python script on your current work directory

Launch the simulated world

For example:

roslaunch kobuki_gazebo kobuki_empty_world.launch --screen

Execute the generated code

The generated code need a configuration file .yml as parameter, you will find some usefull configuration files in this git repository.

./myscratchfile.py /path/to/robot_ros.yml

Running an example

You have all you need for running the examples in the examples folder

More information about the tool

http://jderobot.org/Scratch4Robots

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged scratch4robots at Robotics Stack Exchange

No version for distro melodic. Known supported distros are highlighted in the buttons above.