Skip to content

Commit

Permalink
install ros before calling rosdep
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Mar 5, 2022
1 parent cf05b6b commit 546a06b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions installer/tue-install-impl.bash
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,15 @@ function tue-install-rosdep
then
tue-install-debug "Target '$target' has not yet been resolved by rosdep, going to installation procedure"

# Also make sure ros is installed
tue-install-target ros || tue-install-error "Failed to install target 'ROS'"

# Check if target can be resolved by rosdep
tue-install-debug "rosdep resolve $target"
rosdep_res=($(rosdep resolve $target 2>&1))
if [ $? -eq 0 ]
then
tue-install-debug "rosdep correctly resolved to: ${rosdep_res[@]}"
# Also make sure ros is installed
tue-install-target ros || tue-install-error "Failed to install target 'ROS'"

# If the target has a parent target, add target as a dependency to the parent target
if [ -n "$parent_target" ]
Expand Down

0 comments on commit 546a06b

Please sign in to comment.