Autoware.Auto
mpc_controller_node.hpp
Go to the documentation of this file.
1 // Copyright 2019 Christopher Ho
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef MPC_CONTROLLER_NODES__MPC_CONTROLLER_NODE_HPP_
15 #define MPC_CONTROLLER_NODES__MPC_CONTROLLER_NODE_HPP_
16 
20 
21 #include <string>
22 
23 namespace motion
24 {
25 namespace control
26 {
27 namespace mpc_controller_nodes
28 {
29 class MPC_CONTROLLER_NODES_PUBLIC MpcControllerNode
31 {
32 public:
34  MpcControllerNode(const std::string & name, const std::string & ns);
37  const std::string & name,
38  const std::string & ns,
39  const std::string & command_topic,
40  const std::string & state_topic,
41  const std::string & tf_topic,
42  const std::string & trajectory_topic,
43  const std::string & diagnostic_topic,
44  const std::string & static_tf_topic,
45  const mpc_controller::Config & config);
46 
47 private:
48  rclcpp::Publisher<autoware_auto_msgs::msg::Trajectory>::SharedPtr m_debug_traj_pub{};
49  rclcpp::TimerBase::SharedPtr m_debug_timer{};
50 }; // class MpcControllerNode
51 } // namespace mpc_controller_nodes
52 } // namespace control
53 } // namespace motion
54 
55 #endif // MPC_CONTROLLER_NODES__MPC_CONTROLLER_NODE_HPP_
Definition: controller_base.hpp:30
Definition: mpc_controller_node.hpp:29
A configuration class for the MpcController.
Definition: control/mpc_controller/include/mpc_controller/config.hpp:56