scenario_simulator_v2 C++ API
traffic_module_base.hpp
Go to the documentation of this file.
1 
12 // Copyright 2015 TIER IV.inc. All rights reserved.
13 //
14 // Licensed under the Apache License, Version 2.0 (the "License");
15 // you may not use this file except in compliance with the License.
16 // You may obtain a copy of the License at
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 // See the License for the specific language governing permissions and
24 // limitations under the License.
25 
26 #ifndef TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_MODULE_BASE_HPP_
27 #define TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_MODULE_BASE_HPP_
28 
29 #include <visualization_msgs/msg/marker_array.hpp>
30 
31 namespace traffic_simulator
32 {
33 namespace traffic
34 {
36 {
37 public:
39  virtual void execute(const double current_time, const double step_time) = 0;
40  virtual auto appendDebugMarker(visualization_msgs::msg::MarkerArray &) const -> void{};
41 };
42 } // namespace traffic
43 } // namespace traffic_simulator
44 
45 #endif // TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_MODULE_BASE_HPP_
Definition: traffic_module_base.hpp:36
virtual auto appendDebugMarker(visualization_msgs::msg::MarkerArray &) const -> void
Definition: traffic_module_base.hpp:40
TrafficModuleBase()
Definition: traffic_module_base.hpp:38
virtual void execute(const double current_time, const double step_time)=0
Definition: api.hpp:49