# robot_blockly **Repository Path**: gengxf0505/robot_blockly ## Basic Information - **Project Name**: robot_blockly - **Description**: A simple way to program ROS robots using blockly. - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2019-10-02 - **Last Updated**: 2021-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # robot_blockly `robot_blockly` is a ROS package that provides web-based visualization and block programming tools for robots and drones. ![](img/ROSimple-peek.png) ![](img/ROSimple-code.png) ### Installation: #### Requeriments for Erle-Brain3 ```bash sudo apt update sudo apt install -y git cmake python3 python3-pip python3-yaml sudo pip3 install autobahn rospkg ``` ``` mkdir -p ~/blockly_ws/src cd ~/blockly_ws/src git clone https://gitee.com/gengxf0505/robot_blockly.git cd robot_blockly/frontend/ git clone https://gitee.com/gengxf0505/ace-builds.git git clone https://gitee.com/gengxf0505/blockly.git cd ../scripts # install apache sudo apt-get install apache2 # make sure that Apache is running properly in your robot and then ./deploy.sh cd ~/blockly_ws/ sed -i 's/crab_msgs.msg//g' scripts/robot_blockly_backend.py #Remove spider msgs catkin_make_isolated -j2 --pkg robot_blockly --install ``` You can also try ``` mkdir -p ~/blockly_ws/src cd ~/blockly_ws/src git clone --recurse-submodules https://github.com/erlerobot/robot_blockly cd .. catkin_make_isolated -j2 --pkg robot_blockly --install ``` ### Launch it: ``` source ~/blockly_ws/install_isolated/setup.bash roslaunch robot_blockly robot_blockly.launch ``` ### 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. In-depth explanation [here](http://erlerobotics.com/Docs/Robot_Operating_System/ROS/Blockly/Block_creation) ### License blockly has been built based on [blockly](http://github.com/erlerobot/blockly), [ACE](http://github.com/erlerobot/ace-builds) and Bootstrap. Refer to their sources for the corresponding licenses. Unless specified, the rest of the code is freed under a GPLv3 License. ### Documentation - [Erle Robotics blockly docs](http://erlerobotics.com/docs/Robot_Operating_System/ROS/Blockly/Intro.html) - [ROS Wiki](http://wiki.ros.org/blockly) # Robots where blockly has been implemented: - [Erle-Spider](http://erlerobotics.com/blog/product/erle-spider-the-ubuntu-drone-with-legs/) - [Erle-Rover](https://erlerobotics.com/blog/product/erle-rover/) - [Shadow Robot hands](http://www.shadowrobot.com/)