Creating custom GUI with Qt and ROS2
-
Install ROS2 Foxy. Make sure to setup your environment with:
source /opt/ros/foxy/setup.bash
NOTE: You may want to add that line to your
~/.bashrc
-
Create a colcon workspace (Note: Feel free to change
~/ws_ros2
to whatever absolute path you want):export COLCON_WS=~/ws_ros2/ mkdir -p $COLCON_WS/src
-
Clone the required repositories and install any dependencies:
cd $COLCON_WS/src git clone https://github.com/Abishalini/ROS2QtGui.git rosdep install --ignore-src --from-paths . -y
-
Configure and build the workspace
source $COLCON_WS/install/setup.bash
-
Launch the GUI using the following command:
ros2 launch qtros2 gui.launch.py