Hi All, what is the best way to organize a git repo for ROS dev. I tried to look around to some repos to see how things are set up but havenβt found a canonical example. My requirements are that I need to support both ROS2 and MicroROS. My idea of an ideal setup (with some suggestions from chatgpt) looks something like this. Does this look right?
~/ros_ws/ # Git repository root
βββ .git/ # Git tracking everything inside ros_ws/
βββ src/
β βββ ros2_ws/ # Main ROS 2 workspace (robot code)
β β βββ src/
β β β βββ my_robot_control/
β β β βββ my_robot_bringup/
β β β βββ my_robot_msgs/
β β β βββ micro_ros_firmware/
β β βββ install/ # Should be in .gitignore
β β βββ build/ # Should be in .gitignore
β β βββ log/ # Should be in .gitignore
β βββ micro_ros_agent/ # Micro-ROS agent workspace
β β βββ src/
β β βββ install/ # Should be in .gitignore
β β βββ build/ # Should be in .gitignore
β β βββ log/ # Should be in .gitignore
βββ install/ # Should be in .gitignore
βββ build/ # Should be in .gitignore
βββ log/ # Should be in .gitignore
βββ .gitignore # Contains ignored folders
Feel free to link to other threads/ or repos