Skip to content

Commit

Permalink
renamed to types_proto
Browse files Browse the repository at this point in the history
  • Loading branch information
filippobrizzi committed Oct 22, 2024
1 parent 30a1145 commit a40000e
Show file tree
Hide file tree
Showing 26 changed files with 35 additions and 35 deletions.
14 changes: 7 additions & 7 deletions modules/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ define_module_library(
)

# library sources
set(TYPES_PROTOBUF_SOURCES
src/types_protobuf/geometry.cpp src/types_protobuf/pose.cpp src/types_protobuf/sample.cpp
include/hephaestus/examples/types_protobuf/geometry.h include/hephaestus/examples/types_protobuf/pose.h
include/hephaestus/examples/types_protobuf/sample.h
set(types_proto_SOURCES
src/types_proto/geometry.cpp src/types_proto/pose.cpp src/types_proto/sample.cpp
include/hephaestus/examples/types_proto/geometry.h include/hephaestus/examples/types_proto/pose.h
include/hephaestus/examples/types_proto/sample.h
)

# library target
define_module_library(
NAME examples_types_protobuf
NAME examples_types_proto
PUBLIC_LINK_LIBS hephaestus::utils hephaestus::serdes hephaestus::random hephaestus::examples_types
hephaestus::examples_types_proto Eigen3::Eigen
hephaestus::examples_types_gen_proto Eigen3::Eigen
PRIVATE_LINK_LIBS ""
SOURCES ${TYPES_PROTOBUF_SOURCES}
SOURCES ${types_proto_SOURCES}
PUBLIC_INCLUDE_PATHS $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>
PRIVATE_INCLUDE_PATHS ""
SYSTEM_PRIVATE_INCLUDE_PATHS ""
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/mcap_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "hephaestus/bag/writer.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/raw_subscriber.h"
#include "hephaestus/serdes/serdes.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/serdes_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <fmt/core.h>

#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/serdes/json.h"
#include "hephaestus/serdes/serdes.h"

Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_action_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/sample.h"
#include "hephaestus/examples/types_protobuf/sample.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/sample.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/action_server/action_server.h"
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/publisher.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_action_server_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/sample.h"
#include "hephaestus/examples/types_protobuf/sample.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/sample.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/action_server/action_server.h"
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_pub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/publisher.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_service_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/service.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_service_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/service.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_string_service_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <fmt/core.h>

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/service.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/examples/zenoh_sub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "hephaestus/cli/program_options.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/program_options.h"
#include "hephaestus/ipc/zenoh/raw_subscriber.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/examples/proto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ set(SOURCES
hephaestus/examples/types/proto/pose.proto
)

define_module_proto_library(NAME examples_types_proto SOURCES ${SOURCES})
define_module_proto_library(NAME examples_types_gen_proto SOURCES ${SOURCES})
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// Copyright (C) 2023-2024 HEPHAESTUS Contributors
//=================================================================================================

#include "hephaestus/examples/types_protobuf/geometry.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/geometry.h" // NOLINT(misc-include-cleaner)
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Copyright (C) 2023-2024 HEPHAESTUS Contributors
//=================================================================================================

#include "hephaestus/examples/types_protobuf/pose.h"
#include "hephaestus/examples/types_proto/pose.h"

#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types/proto/pose.pb.h"
#include "hephaestus/examples/types_protobuf/geometry.h"
#include "hephaestus/examples/types_proto/geometry.h"

namespace heph::examples::types {
void toProto(proto::Pose& proto_pose, const Pose& pose) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "hephaestus/examples/types/sample.h"

#include "hephaestus/examples/types/proto/sample.pb.h"
#include "hephaestus/examples/types_protobuf/sample.h"
#include "hephaestus/examples/types_proto/sample.h"

namespace heph::examples::types {

Expand Down
4 changes: 2 additions & 2 deletions modules/examples/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#=================================================================================================

define_module_test(
NAME types_protobuf_tests
SOURCES types_protobuf_tests.cpp helpers.h
NAME types_proto_tests
SOURCES types_proto_tests.cpp helpers.h
PUBLIC_INCLUDE_PATHS
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
PUBLIC_LINK_LIBS "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types/proto/geometry.pb.h"
#include "hephaestus/examples/types/proto/pose.pb.h"
#include "hephaestus/examples/types_protobuf/geometry.h"
#include "hephaestus/examples/types_protobuf/pose.h"
#include "hephaestus/examples/types_proto/geometry.h"
#include "hephaestus/examples/types_proto/pose.h"

// NOLINTNEXTLINE(google-build-using-namespace)
using namespace ::testing;
Expand Down
4 changes: 2 additions & 2 deletions modules/examples/tests/zenoh_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#include "helpers.h"
#include "hephaestus/examples/types/pose.h"
#include "hephaestus/examples/types_protobuf/geometry.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_protobuf/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/geometry.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/examples/types_proto/pose.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/topic.h"
#include "hephaestus/ipc/zenoh/publisher.h"
#include "hephaestus/ipc/zenoh/raw_subscriber.h"
Expand Down
4 changes: 2 additions & 2 deletions modules/ipc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(SOURCES
src/zenoh/action_server/action_server.cpp
src/zenoh/action_server/client_helper.cpp
src/zenoh/action_server/types.cpp
src/zenoh/action_server/types_protobuf.cpp
src/zenoh/action_server/types_proto.cpp
README.md
include/hephaestus/ipc/topic.h
include/hephaestus/ipc/topic_database.h
Expand All @@ -53,7 +53,7 @@ set(SOURCES
include/hephaestus/ipc/zenoh/action_server/action_server.h
include/hephaestus/ipc/zenoh/action_server/client_helper.h
include/hephaestus/ipc/zenoh/action_server/types.h
include/hephaestus/ipc/zenoh/action_server/types_protobuf.h
include/hephaestus/ipc/zenoh/action_server/types_proto.h
)

# library target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "hephaestus/ipc/topic.h"
#include "hephaestus/ipc/zenoh/action_server/client_helper.h"
#include "hephaestus/ipc/zenoh/action_server/types.h"
#include "hephaestus/ipc/zenoh/action_server/types_protobuf.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/action_server/types_proto.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/publisher.h"
#include "hephaestus/ipc/zenoh/service.h"
#include "hephaestus/ipc/zenoh/session.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "hephaestus/ipc/topic.h"
#include "hephaestus/ipc/zenoh/action_server/types.h"
#include "hephaestus/ipc/zenoh/action_server/types_protobuf.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/action_server/types_proto.h" // NOLINT(misc-include-cleaner)
#include "hephaestus/ipc/zenoh/service.h"
#include "hephaestus/ipc/zenoh/session.h"
#include "hephaestus/ipc/zenoh/subscriber.h"
Expand Down
8 changes: 4 additions & 4 deletions modules/types_proto/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# README: types_protobuf
# README: types_proto

## Brief

Module **types_protobuf** provides mapping of **types** data structures to proto IDL.
Module **types_proto** provides mapping of **types** data structures to proto IDL.

## Detailed description

Expand All @@ -18,7 +18,7 @@ define_module_proto_library(NAME types_proto SOURCES ${SOURCES} PUBLIC_LINK_LIBS
* provide generic helper functions for serialization (e.g for `std::chrono::time_point`)

### Non-goals
* similar to module **types**, **types_protobuf** is meant to be generic, and project specific (non-generalizable) methods shall not be added
* similar to module **types**, **types_proto** is meant to be generic, and project specific (non-generalizable) methods shall not be added

### Requirements
* Types are independent of their serialization method, but the module **types_protobuf** depends on module **types**.
* Types are independent of their serialization method, but the module **types_proto** depends on module **types**.

0 comments on commit a40000e

Please sign in to comment.