Skip to content

Commit 33f27ff

Browse files
committed
we are not a component
1 parent 802741a commit 33f27ff

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/viam/api/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ target_sources(viamapi
306306
${PROTO_GEN_DIR}/component/encoder/v1/encoder.pb.cc
307307
${PROTO_GEN_DIR}/component/gantry/v1/gantry.grpc.pb.cc
308308
${PROTO_GEN_DIR}/component/gantry/v1/gantry.pb.cc
309-
${PROTO_GEN_DIR}/component/discovery/v1/discovery.grpc.pb.cc
310-
${PROTO_GEN_DIR}/component/discovery/v1/discovery.pb.cc
311309
${PROTO_GEN_DIR}/component/generic/v1/generic.grpc.pb.cc
312310
${PROTO_GEN_DIR}/component/generic/v1/generic.pb.cc
313311
${PROTO_GEN_DIR}/component/gripper/v1/gripper.grpc.pb.cc
@@ -332,6 +330,8 @@ target_sources(viamapi
332330
${PROTO_GEN_DIR}/module/v1/module.pb.cc
333331
${PROTO_GEN_DIR}/robot/v1/robot.grpc.pb.cc
334332
${PROTO_GEN_DIR}/robot/v1/robot.pb.cc
333+
${PROTO_GEN_DIR}/service/discovery/v1/discovery.grpc.pb.cc
334+
${PROTO_GEN_DIR}/service/discovery/v1/discovery.pb.cc
335335
${PROTO_GEN_DIR}/service/generic/v1/generic.grpc.pb.cc
336336
${PROTO_GEN_DIR}/service/generic/v1/generic.pb.cc
337337
${PROTO_GEN_DIR}/service/mlmodel/v1/mlmodel.grpc.pb.cc
@@ -366,8 +366,6 @@ target_sources(viamapi
366366
${PROTO_GEN_DIR}/../../viam/api/component/encoder/v1/encoder.pb.h
367367
${PROTO_GEN_DIR}/../../viam/api/component/gantry/v1/gantry.grpc.pb.h
368368
${PROTO_GEN_DIR}/../../viam/api/component/gantry/v1/gantry.pb.h
369-
${PROTO_GEN_DIR}/../../viam/api/component/discovery/v1/discovery.grpc.pb.h
370-
${PROTO_GEN_DIR}/../../viam/api/component/discovery/v1/discovery.pb.h
371369
${PROTO_GEN_DIR}/../../viam/api/component/generic/v1/generic.grpc.pb.h
372370
${PROTO_GEN_DIR}/../../viam/api/component/generic/v1/generic.pb.h
373371
${PROTO_GEN_DIR}/../../viam/api/component/gripper/v1/gripper.grpc.pb.h
@@ -393,6 +391,8 @@ target_sources(viamapi
393391
${PROTO_GEN_DIR}/../../viam/api/robot/v1/robot.grpc.pb.h
394392
${PROTO_GEN_DIR}/../../viam/api/robot/v1/robot.pb.h
395393
${PROTO_GEN_DIR}/../../viam/api/tagger/v1/tagger.grpc.pb.h
394+
${PROTO_GEN_DIR}/../../viam/api/service/discovery/v1/discovery.grpc.pb.h
395+
${PROTO_GEN_DIR}/../../viam/api/service/discovery/v1/discovery.pb.h
396396
${PROTO_GEN_DIR}/../../viam/api/service/generic/v1/generic.grpc.pb.h
397397
${PROTO_GEN_DIR}/../../viam/api/service/generic/v1/generic.pb.h
398398
${PROTO_GEN_DIR}/../../viam/api/service/mlmodel/v1/mlmodel.grpc.pb.h

src/viam/sdk/services/discovery.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ namespace sdk {
1414
/// @defgroup Discovery Classes related to the Discovery service.
1515

1616
/// @class Discovery discovery.hpp "services/discovery.hpp"
17-
/// @brief A `Discovery` service is used to discover resources that are physically connected to your machine.
17+
/// @brief A `Discovery` service is used to discover resources that are physically connected to
18+
/// your machine.
1819
/// @ingroup Discovery
1920
///
2021
/// This acts as an abstract parent class to be inherited from by any drivers representing
2122
/// specific discovery implementations. This class cannot be used on its own.
2223

2324
class Discovery : public Service {
2425
public:
25-
2626
/// @brief Discover valid viam configuration of resources that are physically
2727
/// connected to your machine.
2828
inline std::vector<ResourceConfig> discover_resources() {
@@ -31,8 +31,7 @@ class Discovery : public Service {
3131

3232
/// @brief Discover valid viam configuration of resources that are physically
3333
/// connected to your machine.
34-
virtual std::vector<ResourceConfig> discover_resources(
35-
const ProtoStruct& extra) = 0;
34+
virtual std::vector<ResourceConfig> discover_resources(const ProtoStruct& extra) = 0;
3635

3736
/// @brief Do an arbitrary command.
3837
/// @param command Freeform fields that are service-specific.
@@ -45,7 +44,6 @@ class Discovery : public Service {
4544
explicit Discovery(std::string name);
4645
};
4746

48-
4947
template <>
5048
struct API::traits<Navigation> {
5149
static API api();

0 commit comments

Comments
 (0)