I am attempting to upgrade our Stretch RE1 to 20.04 using the instructions on Github
When running the stretch_new_robot_install.sh script, I receive the “FAILURE. INSTALLATION DID NOT COMPLETE.” message, but the log messages above show no error.
Looking through the log files, it seems to have failed when creating the Galactic ament workspace:
Could not checkout ref ‘ros2-beta’: fatal: invalid reference: ros2-beta
Any help to solve this issue would be greatly appreciated!
Hi @lstegner, a few days ago the ‘ros2-beta’ branch from the realsense-ros repo was renamed to ‘ros2-development’, which is why the new robot install failed looking for the old branch. It’s now fixed in Stretch Install and you don’t have to start a new robot install from scratch. You can pickup from where the script crashed by:
Opening ~/.bashrc and commenting out the lines that source noetic/setup.bash and catkin_ws/devel/setup.bash.
When I run the script you recommend to resume the install, I get the following:
###########################################
CREATING GALACTIC AMENT WORKSPACE at /home/hello-robot/ament_ws
###########################################
Ensuring correct version of ROS is sourced...
Cannot create workspace while a conflicting ROS version is sourced. Exiting.
hello-robot@stretch-re1-1042:~/stretch_install$
However, I was able to start the new robot install from scratch, and it succeeded.
Glad to hear it @lstegner! That’s my mistake; the error is expected because I forgot to mention an additional step to “unsource” ROS1 while building the ROS2 workspace. I’ve fixed this in my reply above so it’s correct for anyone else who sees this thread.