Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 2.03 KB

README.md

File metadata and controls

60 lines (46 loc) · 2.03 KB

blockly

blockly is a ROS package that provides web-based visualization and block programming tools for robots and drones.

Note: The package has been renamed from ros_rosimple to ros_blockly to meet http://wiki.ros.org/ROS/Patterns/Conventions

Installation:

Frontend

cd <catkin_ws_root>/src
git clone https://github.com/lucasw/ros_blockly
cd ros_blockly/frontend
git clone https://github.com/lucasw/blockly
git clone https://github.com/erlerobot/ace-builds
cd ../scripts

# install apache
sudo apt-get install apache2
# make sure that Apache is running properly in your robot and then
sudo ln -s <caktin_ws_root>/src/ros_blockly/frontend/ /var/www/ros_blockly

Backend

# Install dependencies
sudo pip3 install rosdep rosinstall_generator wstool rosinstall
sudo pip3 install autobahn
cd <catkin_ws_root>
catkin_make #_isolated --pkg blockly --install
#source install_isolated/setup.bash
roscore
rosrun blockly blockly_backend.py

# now go to http://localhost/ros_blockly
#  and start playing!

Create your own blocks

  • Open frontend/demos/blockfactory/index.html
  • Design you own block and then add the metadata to: frontend/blockly/blocks and frontend/blockly/generator
  • Launch python build.py to regenerate the blocks.

License

blockly has been built based on blockly, ACE and Bootstrap. Refer to their sources for the corresponding licenses.

Unless specified, the rest of the code is freed under a GPLv3 License.

Documentation

Robots where blockly has been implemented:

Do you need help getting your robot supported? Launch your questions at http://forum.erlerobotics.com.