Skip to content

Commit 3f7c6c7

Browse files
committed
add inlines without
1 parent b7c8cb5 commit 3f7c6c7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/viam/sdk/services/navigation.hpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,32 @@ class Navigation : public Service {
8888
virtual MapType get_properties(const std::string) = 0;
8989
virtual ProtoStruct do_command(const ProtoStruct& command) = 0;
9090

91+
// overloads without `extra` param.
92+
inline Mode get_mode(const std::string name) {
93+
return get_mode(name, {});
94+
}
95+
inline void set_mode(const std::string name, const Mode mode) {
96+
set_mode(name, mode, {});
97+
}
98+
inline LocationResponse get_location(const std::string name) {
99+
return get_location(name, {});
100+
}
101+
inline std::unique_ptr<std::vector<Waypoint>> get_waypoints(const std::string name) {
102+
return get_waypoints(name, {});
103+
}
104+
inline void add_waypoint(const std::string name, const geo_point& location) {
105+
add_waypoint(name, location, {});
106+
}
107+
inline void remove_waypoint(const std::string name, const std::string id) {
108+
remove_waypoint(name, id, {});
109+
}
110+
inline std::unique_ptr<std::vector<geo_geometry>> get_obstacles(const std::string name) {
111+
return get_obstacles(name, {});
112+
}
113+
inline std::unique_ptr<std::vector<Path>> get_paths(const std::string name) {
114+
return get_paths(name, {});
115+
}
116+
91117
protected:
92118
explicit Navigation(std::string name);
93119
};

0 commit comments

Comments
 (0)