To install ros 2 follow this link, if you don't have too much storage in the machine is possible to install just the ROS-base version.
Add sourcing to your shell startup script [reference]
If you don’t want to have to source the setup file every time you open a new shell, then you can add the command to your shell startup script:
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> ~/.bashrc
git clone [email protected]:AngelDiaz03/CNOSolarROS2.git
colcon build --symlink-install
Note: The "--symlink-install" flag is to make easier the working process whe you use it, there's no need to build agin every time you change a file.
source install/setup.bash
echo "source {$PATH}/install/setup.bash" >> ~/.bashrc
ros2 launch meteorology_data meteorology.launch.xml