Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rclcpp/include/rclcpp/create_subscription.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "rclcpp/node_interfaces/node_topics_interface.hpp"

#include "rclcpp/create_publisher.hpp"
#include "rclcpp/create_timer.hpp"
#include "rclcpp/qos.hpp"
#include "rclcpp/subscription_factory.hpp"
#include "rclcpp/subscription_options.hpp"
Expand Down
7 changes: 6 additions & 1 deletion rclcpp/test/benchmark/benchmark_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <chrono>
#include <memory>
#include <string>

#include "performance_test_fixture/performance_test_fixture.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/executors.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_options.hpp"
#include "rclcpp/service.hpp"
#include "rclcpp/utilities.hpp"
#include "test_msgs/srv/empty.hpp"

using performance_test_fixture::PerformanceTest;
Expand Down
25 changes: 24 additions & 1 deletion rclcpp/test/benchmark/benchmark_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,38 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <atomic>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <future>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
#include <utility>
#include <vector>

#include "performance_test_fixture/performance_test_fixture.hpp"

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/callback_group.hpp"
#include "rclcpp/exceptions.hpp"
#include "rclcpp/executors.hpp"
#include "rclcpp/executors/events_cbg_executor/events_cbg_executor.hpp"
#include "rclcpp/executors/multi_threaded_executor.hpp"
#include "rclcpp/executors/single_threaded_executor.hpp"
#include "rclcpp/future_return_code.hpp"
#include "rclcpp/guard_condition.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/publisher.hpp"
#include "rclcpp/publisher_base.hpp"
#include "rclcpp/publisher_options.hpp"
#include "rclcpp/qos.hpp"
#include "rclcpp/subscription.hpp"
#include "rclcpp/subscription_options.hpp"
#include "rclcpp/timer.hpp"
#include "rclcpp/utilities.hpp"
#include "rclcpp/waitable.hpp"
#include "rcpputils/scope_exit.hpp"
#include "test_msgs/msg/empty.hpp"

Expand Down
2 changes: 1 addition & 1 deletion rclcpp/test/benchmark/benchmark_init_shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "performance_test_fixture/performance_test_fixture.hpp"

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/utilities.hpp"

using performance_test_fixture::PerformanceTest;

Expand Down
3 changes: 2 additions & 1 deletion rclcpp/test/benchmark/benchmark_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#include <string>

#include "performance_test_fixture/performance_test_fixture.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"

using performance_test_fixture::PerformanceTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

#include "performance_test_fixture/performance_test_fixture.hpp"

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/parameter.hpp"
#include "rclcpp/parameter_value.hpp"
#include "rclcpp/utilities.hpp"

class NodeParametersInterfaceTest : public performance_test_fixture::PerformanceTest
{
Expand Down
15 changes: 13 additions & 2 deletions rclcpp/test/benchmark/benchmark_parameter_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <algorithm>
#include <memory>
#include <vector>
#include <string>
#include <thread>
#include <vector>

#include "benchmark/benchmark.h"

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/context.hpp"
#include "rclcpp/executor_options.hpp"
#include "rclcpp/executors/single_threaded_executor.hpp"
#include "rclcpp/init_options.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_options.hpp"
#include "rclcpp/parameter.hpp"
#include "rclcpp/parameter_client.hpp"
#include "rclcpp/parameter_value.hpp"
#include "rclcpp/utilities.hpp"

class RemoteNodeTest : public benchmark::Fixture
{
Expand Down
6 changes: 5 additions & 1 deletion rclcpp/test/benchmark/benchmark_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <functional>
#include <memory>

#include "performance_test_fixture/performance_test_fixture.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/client.hpp"
#include "rclcpp/executors/single_threaded_executor.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"
#include "test_msgs/srv/empty.hpp"

using performance_test_fixture::PerformanceTest;
Expand Down
4 changes: 3 additions & 1 deletion rclcpp/test/rclcpp/exceptions/test_exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@

#include <gtest/gtest.h>

#include <stdexcept>

#include "rclcpp/exceptions.hpp"
#include "rclcpp/exceptions/exceptions.hpp"
#include "rclcpp/rclcpp.hpp"

#include "../../mocking_utils/patch.hpp"
#include "../../utils/rclcpp_gtest_macros.hpp"
Expand Down
9 changes: 7 additions & 2 deletions rclcpp/test/rclcpp/executors/test_entities_collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@

#include <gtest/gtest.h>

#include "rclcpp/executors/executor_notify_waitable.hpp"
#include "rclcpp/rclcpp.hpp"
#include <memory>
#include <stdexcept>

#include "rclcpp/callback_group.hpp"
#include "rclcpp/executors/executor_entities_collector.hpp"
#include "rclcpp/executors/executor_notify_waitable.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"

#include "../../utils/rclcpp_gtest_macros.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
#include <mutex>
#include <thread>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/callback_group.hpp"
#include "rclcpp/executor_options.hpp"
#include "rclcpp/executors/events_cbg_executor/events_cbg_executor.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/subscription_options.hpp"
#include "rclcpp/utilities.hpp"
#include "test_msgs/msg/empty.hpp"

using namespace std::chrono_literals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
#include <stdexcept>

#include "rclcpp/executors/single_threaded_executor.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/guard_condition.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"
#include "rclcpp/waitable.hpp"

#include "rcpputils/scope_exit.hpp"

Expand Down
15 changes: 14 additions & 1 deletion rclcpp/test/rclcpp/executors/test_executors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,32 @@
#include <limits>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include <utility>
#include <vector>

#include "rcl/error_handling.h"
#include "rcl/time.h"
#include "rclcpp/callback_group.hpp"
#include "rclcpp/clock.hpp"
#include "rclcpp/context.hpp"
#include "rclcpp/detail/add_guard_condition_to_rcl_wait_set.hpp"
#include "rclcpp/duration.hpp"
#include "rclcpp/executor_options.hpp"
#include "rclcpp/executors.hpp"
#include "rclcpp/future_return_code.hpp"
#include "rclcpp/guard_condition.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_options.hpp"
#include "rclcpp/publisher.hpp"
#include "rclcpp/qos.hpp"
#include "rclcpp/subscription.hpp"
#include "rclcpp/subscription_base.hpp"
#include "rclcpp/subscription_options.hpp"
#include "rclcpp/time_source.hpp"
#include "rclcpp/utilities.hpp"

#include "test_msgs/msg/empty.hpp"
#include "test_msgs/srv/empty.hpp"
Expand Down
5 changes: 4 additions & 1 deletion rclcpp/test/rclcpp/executors/test_executors_busy_waiting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
#include <gtest/gtest.h>

#include <chrono>
#include <condition_variable>
#include <functional>
#include <memory>
#include <mutex>
#include <sstream>
#include <thread>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/callback_group.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"

#include "./executor_types.hpp"
#include "./test_waitable.hpp"
Expand Down
9 changes: 8 additions & 1 deletion rclcpp/test/rclcpp/executors/test_executors_warmup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@

#include "rcpputils/compile_warnings.hpp"

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/callback_group.hpp"
#include "rclcpp/executors.hpp"
#include "rclcpp/experimental/executors/events_executor/events_executor.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_options.hpp"
#include "rclcpp/qos.hpp"
#include "rclcpp/subscription_options.hpp"
#include "rclcpp/utilities.hpp"

#include "test_msgs/msg/empty.hpp"

Expand Down
13 changes: 10 additions & 3 deletions rclcpp/test/rclcpp/executors/test_multi_threaded_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@
#include <gtest/gtest.h>

#include <chrono>
#include <string>
#include <cmath>
#include <memory>
#include <mutex>
#include <string>

#include "rclcpp/callback_group.hpp"
#include "rclcpp/clock.hpp"
#include "rclcpp/exceptions.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/executor_options.hpp"
#include "rclcpp/executors.hpp"
#include "rclcpp/executors/multi_threaded_executor.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/time.hpp"
#include "rclcpp/utilities.hpp"

using namespace std::chrono_literals;

Expand Down
4 changes: 3 additions & 1 deletion rclcpp/test/rclcpp/executors/test_reinitialized_timers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
#include <memory>
#include <thread>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/create_timer.hpp"
#include "rclcpp/duration.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/utilities.hpp"

#include "./executor_types.hpp"

Expand Down
12 changes: 11 additions & 1 deletion rclcpp/test/rclcpp/node_interfaces/node_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@
#include <memory>
#include <string>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/client.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_interfaces/node_clock_interface.hpp"
#include "rclcpp/node_interfaces/node_graph_interface.hpp"
#include "rclcpp/node_interfaces/node_logging_interface.hpp"
#include "rclcpp/node_interfaces/node_parameters_interface.hpp"
#include "rclcpp/node_interfaces/node_services_interface.hpp"
#include "rclcpp/node_interfaces/node_time_source_interface.hpp"
#include "rclcpp/node_interfaces/node_timers_interface.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"
#include "rclcpp/node_interfaces/node_waitables_interface.hpp"

class NodeWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

#include <memory>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#include <memory>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"

#include "../node_wrapper.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

#include <memory>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"

int main(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#include <memory>

#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"

#include "../node_wrapper.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
// limitations under the License.

#include <memory>
#include <stdexcept>
#include <string>
#include <type_traits>

#include "gtest/gtest.h"

#include "rclcpp/node.hpp"
#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/node_interfaces/node_topics_interface.hpp"
#include "rclcpp/utilities.hpp"

#include "./node_wrapper.hpp"

Expand Down
4 changes: 3 additions & 1 deletion rclcpp/test/rclcpp/node_interfaces/test_node_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
#include <gtest/gtest.h>

#include <memory>
#include <stdexcept>
#include <string>

#include "rcl/node_options.h"
#include "rclcpp/exceptions.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/node_interfaces/node_base.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rclcpp/utilities.hpp"
#include "rmw/validate_namespace.h"
#include "rmw/validate_node_name.h"

Expand Down
Loading