Open hello-amal opened 4 months ago
Hey @hello-amal, I agree that this is a real issue, which is why I added stretch_update_ros_workspace.sh
in PR #71. With this new script, the user gets a clear SUCCESS or FAILURE message at the end, similar to how the new robot setup script works. The script doesn't try to catch the specific type of failure that occurred, but it does point the user to the log file that they can attach when they reach out for support via email/forum. The docs on https://docs.hello-robot.com/ need to be updated to use this new script instead of the older scripts.
If you agree that this new script addresses the use-case, I'll put up the new docs and close this issue.
Yeah this script should address the use case (I looked through the code, didn't actually test it). Two TODOs related to this:
stretch_update_ros_workspace.sh
or stretch_create_ament_workspace.sh
that echos the log dir to users. We should add it (perhaps at the top of the create workspace script, and also in the failure message) to help users debug.
As it stands, if
colcon build
encounters an error,stretch_create_ament_workspace
fails silently (here). This is non-ideal for two reasons:stretch_create_ament_workspace
because it has to do additional work (e.g., populate URDFs).(Both these issues arose when the UIUC team was upgrading the workspace on their Stretch 2.)
We should catch when the
colcon build
fails and provide the user appropriate instructions. If it does not return a failure exit code, we could possible look for all the package names in theinstall
directory, and fail if an expected package does not exist.