You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands, if colcon build encounters an error, stretch_create_ament_workspace fails silently (here). This is non-ideal for two reasons:
The user thinks it succeeds but it didn't.
Once the user realizes that the workspace build didn't succeed, the logical thing they'd try is to manually re-build the workspace. But it is unclear to them that after doing that, they have to re-run 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 the install directory, and fail if an expected package does not exist.
The text was updated successfully, but these errors were encountered:
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.
Nit: The update_ros_workspace script changes the current directory, but doesn't change it back. IMHO it is best for scripts to restore the pwd to what it originally was. (But this isn't a high priority change, since we don't expect users to need to use this script often.)
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.The text was updated successfully, but these errors were encountered: