A simple way to program ROS robots using blockly.
robot_blockly
is a ROS package that provides web-based visualization and block programming tools for robots and drones.
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://github.com/erlerobot/robot_blockly
cd robot_blockly/frontend/
git clone https://github.com/erlerobot/ace-builds.git
git clone https://github.com/erlerobot/blockly.git
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
source ~/blockly_ws/install_isolated/setup.bash
roslaunch robot_blockly robot_blockly.launch
frontend/demos/blockfactory/index.html
frontend/blockly/blocks
and frontend/blockly/generator
python build.py
to regenerate the blocks.In-depth explanation here
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.