Drake
resource_tool.cc File Reference
#include <iostream>
#include <gflags/gflags.h>
#include "drake/common/find_resource.h"
#include "drake/common/text_logging_gflags.h"
Include dependency graph for resource_tool.cc:

drake

Functions

DEFINE_string (print_resource_path,"","Given the relative path of a resource within Drake, e.g., ""drake/examples/pendulum/Pendulum.urdf, ""find the resource and print its absolute path, e.g., ""/home/user/tmp/drake/examples/pendulum/Pendulum.urdf")

DEFINE_bool (print_resource_root_environment_variable_name, false,"Print the name of the environment variable that provides the ""first place where this tool attempts to look. This flag cannot be used ""in combination with the other flags.")

DEFINE_string (add_resource_search_path,"","Adds path in which the resources live. This directory will be""searched after the environment variable but before the directory in which"" .drake-resource-sentinel is, if such a directory is found. This flag ""can be used in combination with print_resource_path")

int main (int argc, char *argv[])

Function Documentation

 DEFINE_bool ( print_resource_root_environment_variable_name , false , "Print the name of the environment variable that provides the ""first place where this tool attempts to look. This flag cannot be used ""in combination with the other flags." )
 DEFINE_string ( print_resource_path , "" , "Given the relative path of a resource within Drake, e. g., ""drake/examples/pendulum/Pendulum.urdf , ""find the resource and print its absolute path, e. g., ""/home/user/tmp/drake/examples/pendulum/Pendulum.urdf" )
 DEFINE_string ( add_resource_search_path , "" , "Adds path in which the resources live. This directory will be""searched after the environment variable but before the directory in which"" .drake-resource-sentinel is, if such a directory is found.This flag""can be used in combination withprint_resource_path" )
 int main ( int argc, char * argv[] )