Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many fixes for agx systems #84

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Many fixes for agx systems #84

merged 2 commits into from
Nov 13, 2023

Conversation

AaronYoung5
Copy link
Collaborator

#83

@AaronYoung5 AaronYoung5 self-assigned this Nov 12, 2023
atk.env Outdated
@@ -1,4 +1,4 @@
ROS_DISTRO=humble

DEFAULT_APT_DEPENDENCIES=" bash vim git git-lfs python3-pip"
DEFAULT_PIP_REQUIREMENTS=" setuptools==58.2.0 "
DEFAULT_APT_DEPENDENCIES=" bash vim git git-lfs python3-pip "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this space needed?

Copy link
Collaborator Author

@AaronYoung5 AaronYoung5 Nov 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk more of a future proofing. probably not needed, but makes this valid: "${DEFAULT_APT_DEPENDENCES}another_dependency". can remove if you want.


# Add Isaac apt repositories
# Without this, humble packages on focal (the default ubuntu version for AGX) can't be found
RUN wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | apt-key add - && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw this, but how does this help with our issues (pytorch)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will correctly setup apt to search for humble packages, which won't be the case with the regular ros apt keys cause we're using focal, which doesn't have apt binaries for humble. I guess Isaac set it up so that on focal, you can still find humble binaries.


# Fix permissions since we installed everything as root
USER ${USER}
RUN rosdep fix-permissions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting permission issues...
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What computer is this on? It looks like you built the dev service, not art5? Just remove the log/build/install directory using sudo and try again. You can see what your user is named using whoami, but it will be art since that's what the art@art-dev means. Maybe try checking id -u and id -g to see if you set those correctly because it looks like this is on your workstation, not a jetson.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see permission issues on my computer or the jetson.

@@ -70,6 +70,7 @@ services:
APT_DEPENDENCIES: "${DEFAULT_APT_DEPENDENCIES}"
PIP_REQUIREMENTS: "${DEFAULT_PIP_REQUIREMENTS}"
ROSDEP_METAPACKAGE: "art_art5_meta"
ROSDEP_SKIP_KEYS: "python3-torchvision tf_transformations"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation: python3-torchvision isn't a valid package on aarch64 (the jetson architecture), so we'll ignore it. tf_transformations is actually not a valid package name, but the nmea (idk what that is; maybe gps) driver has it as an exec_depend. It would run find, but i didn't like the warning.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • nmea is the message standard for gps. This is fine - if we need the driver ew can just remove tf_transformations from here right?
  • Confused why tensorflow (tf_transformations) would work fine while pytorch doesn't?
  • What do you mean by "we'll ignore it"? Does this mean we can't run cone detection on the jetson anymore? Does this mean we can't run it with gpu support?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I mean tf_transformations are specified in the exec_depend of the nmea package, but that's not an actual package name. It's a mistake in their package.xml file, which is a submodule of this repo and an exec depend itself of the art_art5_meta package.
  • waht do you mean? pytorch works? tf_transformations just isn't a valid package name
  • no we can run everything fine, will probably need to specify tf_transformations in the pip requirements for that service

@@ -5,19 +5,19 @@
# Install dependencies
ARG APT_DEPENDENCIES=""
RUN apt-get update && \
[ -z "${APT_DEPENDENCIES}" ] || apt-get install --no-install-recommends -y ${APT_DEPENDENCIES} && \
[[ -z "${APT_DEPENDENCIES// /}" ]] || apt-get install --no-install-recommends -y ${APT_DEPENDENCIES} && \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explanation: supports empty spaces, like APT_DEPENDENCIES=" " would have failed before. I think it honestly should fail, but added this anyways.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extra spaces do fail for me...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
sim container also fails for me, unsure how to fix this one...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotchu, i'll push a fix

fi && \
rosdep install --from-paths $ROSDEP_FROM_PATHS --ignore-src -r -y && \
rosdep install --from-paths ${ROSDEP_FROM_PATHS} --ignore-src -r -y --skip-keys="${ROSDEP_SKIP_KEYS}" --os=${ROSDEP_OS_NAME}:${ROSDEP_OS_VERSION} --rosdistro=${ROS_DISTRO} && \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation: added the skip keys that i explained above, explicitly set the os version to look at for rosdep (would be focal, which isn't what we want, if not specified) and explicitly set the rosdistro, which I don't think is actually needed but whatever.


# Avoid setup.py and easy_install deprecation warnings caused by colcon and setuptools
# https://github.com/colcon/colcon-core/issues/454
ENV PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest versions of setuptools would throw a lot of warnings with ros cause the latest versions of python no longer allow easy_install I believe. This line just makes it so those warnings go away. No longer to need to install an older version of setuptools to get rid of that warning. See the first change at the top.

@StefanCaldararu
Copy link
Contributor

seems ot work so far for me... opening another dicsussion about if ppl will use the metapackages...

@AaronYoung5 AaronYoung5 merged commit 6da9ed3 into master Nov 13, 2023
1 check passed
@AaronYoung5 AaronYoung5 deleted the 83/bug/agx-fixes branch November 13, 2023 14:26
@AaronYoung5 AaronYoung5 mentioned this pull request Nov 13, 2023
StefanCaldararu added a commit that referenced this pull request Nov 13, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

#77 fix

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 13, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

#77 fix

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* pull latest master into art-oak (#88)

* fix (#76)

* Update vehicle_computers.md (#78)

#77 fix

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* 74/art oak/metapackages (#89)

* fix (#76)

* Update vehicle_computers.md (#78)

#77 fix

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* Aaron changes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* pull latest master into art-oak (#88)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* 74/art oak/metapackages (#89)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* Aaron changes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

#77 fix

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* pull latest master into art-oak (#88)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* 74/art oak/metapackages (#89)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* Aaron changes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 14, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* pull latest master into art-oak (#88)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* 74/art oak/metapackages (#89)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* Aaron changes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* pull latest master into art-oak (#88)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* 74/art oak/metapackages (#89)

* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>

* Aaron changes

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
StefanCaldararu added a commit that referenced this pull request Nov 19, 2023
* fix (#76)

* Update vehicle_computers.md (#78)

* 81/bug/rosdep-dockerfile-fix (#82)

* Fix small bug in rosdep dockerfile related to hardcoded art_dev_meta line.

* Fix #2

* Added recursive flag to clone in script

* Many fixes for agx systems (#84)

* Many fixes for agx systems

* Small fixes

* pre-commit

---------

Co-authored-by: harryzhang1018 <[email protected]>
Co-authored-by: Aaron Young <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants