Creating custom GUI with Qt and ROS2
-
Install ROS2 Foxy. Make sure to setup your environment with:
source /opt/ros/foxy/setup.bashNOTE: You may want to add that line to your
~/.bashrc -
Create a colcon workspace (Note: Feel free to change
~/ws_ros2to 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