Skip to content

asset downlaod error  #26

@seongjin-lim

Description

@seongjin-lim

asset downlaod error

NGC_ORG="nvidia"
NGC_TEAM="isaac"
PACKAGE_NAME="cumotion_object_attachment"
NGC_RESOURCE="cumotion_object_attachment_assets"
NGC_FILENAME="quickstart.tar.gz"
MAJOR_VERSION=3
MINOR_VERSION=2
VERSION_REQ_URL="https://catalog.ngc.nvidia.com/api/resources/versions?orgName=$NGC_ORG&teamName=$NGC_TEAM&name=$NGC_RESOURCE&isPublic=true&pageNumber=0&pageSize=100&sortOrder=CREATED_DATE_DESC"
AVAILABLE_VERSIONS=$(curl -s
-H "Accept: application/json" "$VERSION_REQ_URL")
LATEST_VERSION_ID=$(echo $AVAILABLE_VERSIONS | jq -r "
.recipeVersions[]
| .versionId as $v
| $v | select(test("^\\d+\\.\\d+\\.\\d+$"))
| split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber, patch: .[2]|tonumber}
| select(.major == $MAJOR_VERSION and .minor <= $MINOR_VERSION)
| $v
" | sort -V | tail -n 1
)
if [ -z "$LATEST_VERSION_ID" ]; then
echo "No corresponding version found for Isaac ROS $MAJOR_VERSION.$MINOR_VERfi rm ${NGC_FILENAME}NAME} -C ${ISAAC_ROS_WS}/isaac_ros_assets && \NGC_TEAM/$NG
jq: error (at :1): Cannot index number with string "recipeVersions"
parse error: Invalid numeric literal at line 1, column 8
No corresponding version found for Isaac ROS 3.2
Found versions:
jq: error (at :1): Cannot index number with string "recipeVersions"
parse error: Invalid numeric literal at line 1, column 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions