forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drake_path.h
24 lines (18 loc) · 883 Bytes
/
drake_path.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <string>
#include "drake/common/drake_deprecated.h"
#include "drake/common/drake_optional.h"
namespace drake {
/// Returns the fully-qualified path to the root of the `drake` source tree.
DRAKE_DEPRECATED("Please use drake::FindResource() instead.")
std::string GetDrakePath();
/// (Advanced) Returns the fully-qualified path to the first folder containing
/// Drake resources as located by FindResource, or nullopt if none is found.
/// For example `${result}/examples/pendulum/Pendulum.urdf` would be the path
/// to the Pendulum example's URDF resource.
///
/// Most users should prefer FindResource() or FindResourceOrThrow() to locate
/// Drake resources for a specific resource filename. This method only exists
/// for legacy compatibility reasons, and might eventually be removed.
optional<std::string> MaybeGetDrakePath();
} // namespace drake