Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version humble
Last Updated 2025-03-25
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.1.3
resource_retriever 3.1.3

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version jazzy
Last Updated 2025-04-02
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.4.4
resource_retriever 3.4.4

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version kilted
Last Updated 2026-06-26
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.7.1
resource_retriever 3.7.1

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
lyrical

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version lyrical
Last Updated 2026-06-24
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 3.9.3

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
rolling

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version rolling
Last Updated 2026-11-20
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 3.10.2

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version ardent
Last Updated 2018-02-08
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.0.2
resource_retriever 2.0.2

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version ros2
Last Updated 2024-11-20
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.6.0
resource_retriever 3.6.0

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version crystal
Last Updated 2018-06-21
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.1.0
resource_retriever 2.1.0

README

No README found.
Repo symbol

resource_retriever repository

libcurl_vendor resource_retriever

ROS Distro
eloquent

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version eloquent
Last Updated 2020-10-16
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.2.2
resource_retriever 2.2.2

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version dashing
Last Updated 2020-10-16
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.1.3
resource_retriever 2.1.3

README

No README found.
Repo symbol

resource_retriever repository

libcurl_vendor resource_retriever

ROS Distro
galactic

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version galactic
Last Updated 2021-04-06
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.5.0
resource_retriever 2.5.0

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version foxy
Last Updated 2020-12-08
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 2.3.4
resource_retriever 2.3.4

README

No README found.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version iron
Last Updated 2024-07-11
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.2.3
resource_retriever 3.2.3

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
lunar

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2025-02-13
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.12.8

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
jade

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version indigo-devel
Last Updated 2017-03-27
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.11.8

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
indigo

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version indigo-devel
Last Updated 2017-03-27
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.11.8

README

No README found.
No version for distro hydro showing humble. Known supported distros are highlighted in the buttons above.

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version humble
Last Updated 2025-03-25
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
libcurl_vendor 3.1.3
resource_retriever 3.1.3

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
kinetic

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2025-02-13
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.12.8

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
melodic

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version kinetic-devel
Last Updated 2025-02-13
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.12.8

README

No README found.
Repo symbol

resource_retriever repository

resource_retriever

ROS Distro
noetic

Repository Summary

Checkout URI https://github.com/ros/resource_retriever.git
VCS Type git
VCS Version noetic-devel
Last Updated 2026-11-18
Dev Status MAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
resource_retriever 1.12.10

README

Code API

resource_retriever has an extremely simple C++ API, consisting of two classes and one method.

The resource_retriever::Retriever class is the gateway into downloading files. Its get() method returns a resource_retriever::MemoryResource which contains the file in memory.

The Retrieving Files tutorial details how to use both classes.

resource_retriever also has a very similar Python API.

Retrieving Files

  • Note: This tutorial assumes that you have completed the previous tutorials: ROS Tutorials.
  • Description: Demonstrates how to retrieve a file from a URL using the resource_retriever package
  • Keywords: urdf, resource_retriever, url, curl
  • Tutorial Level: BEGINNER

Intro

The resource_retriever package lets you download files from any CURL-supported URL, as well as using a special package:* syntax. Here we’ll show you how to use it.*

Retrieving a File Into Memory

Here we’ll show you how to retrieve a file from a URL into memory, which is currently the only supported method of retrieval.

The Code

#include <resource_retriever/retriever.h>
#include <ros/console.h>

int main(int argc, char** argv)
{
  resource_retriever::Retriever r;
  resource_retriever::MemoryResource resource;

  try
  {
     resource = r.get("package://resource_retriever/test/test.txt"); 
  }
  catch (resource_retriever::Exception& e)
  {
    ROS_ERROR("Failed to retrieve file: %s", e.what());
    return 1;
  }

  FILE* f = fopen("out.txt", "w");
  fwrite(resource.data.get(), resource.size, 1, f);
  fclose(f);
  
  ROS_INFO("Wrote data from package://resource_retriever/test/test.txt to out.txt");
}

The Code Explained

This is the main include file for resource_retriever. It includes the two main classes, resource_retriver::Retreiver and resource_retriever::MemoryResource. Create the resource_retriever::Retriever object, which is the object used to retrieve files. Also create a resource_retriever::MemoryResource object, which is the object type returned from Retriever’s get() method. Attempt to download the file. Note the package:* syntax, which is ROS-specific. Generic urls like http:*www.google.com/ would also work here.

If this fails for any reason, a resource_retriever::Exception will be thrown.

Write out the downloaded file to disk. MemoryResource contains two members:

  • data -- a boost::shared_ptr<uint8_t>
  • size -- The size, in bytes, of the data

MemoryResources can be copied. Once all references to MemoryResource::data have left scope it will automatically be deleted.

Note that we don’t do any error checking on the fopen or fwrite here, to simplify the code.

File truncated at 100 lines see the full file