Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.47 KB

README.md

File metadata and controls

54 lines (42 loc) · 1.47 KB

ros_blockly

ros_blockly is a web-based graphical tool for programming in ROS intended to be used for kids and newbies.

Installation:

# install apache
sudo apt-get install apache2
# Install dependencies
sudo pip3 install rosdep rosinstall_generator wstool rosinstall
sudo pip3 install autobahn
sudo apt-get install python3-defusedxml

Frontend

roscd
cd ../src
git clone --recursive https://github.com/eborghi10/ros_blockly
sudo ln -s ~/caktin_ws/src/ros_blockly/frontend/ /var/www/ros_blockly

Backend

roscd
cd ../
catkin_make --only-pkg-with-deps blockly
source devel/setup.bash
# Execute the ROS node
roslaunch blockly ros_blockly.launch
# now, open:
catkin_ws/src/ros_blockly/frontend/index.html
# and start playing!

Create your own blocks

  • Open frontend/blockly/demos/blockfactory/index.html
  • Design you own block and then add the metadata to: frontend/blockly/blocks and frontend/blockly/generators/python
  • 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

Cover photo