ros_blockly
is a web-based graphical tool for programming in ROS intended to be used for kids and newbies.
# 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
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
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!
- Open
frontend/blockly/demos/blockfactory/index.html
- Design you own block and then add the metadata to:
frontend/blockly/blocks
andfrontend/blockly/generators/python
- Launch
python build.py
to regenerate the blocks.
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.