@@ -22,15 +22,13 @@ ControlCmdSwitcher::ControlCmdSwitcher(const rclcpp::NodeOptions & node_options)
22
22
: Node(" control_cmd_switcher" , node_options)
23
23
{
24
24
// Subscriber
25
- sub_main_control_cmd_ =
26
- create_subscription<autoware_control_msgs::msg::Control>(
27
- " ~/input/main/control_cmd" , rclcpp::QoS{10 },
28
- std::bind (&ControlCmdSwitcher::onMainControlCmd, this , std::placeholders::_1));
25
+ sub_main_control_cmd_ = create_subscription<autoware_control_msgs::msg::Control>(
26
+ " ~/input/main/control_cmd" , rclcpp::QoS{10 },
27
+ std::bind (&ControlCmdSwitcher::onMainControlCmd, this , std::placeholders::_1));
29
28
30
- sub_sub_control_cmd_ =
31
- create_subscription<autoware_control_msgs::msg::Control>(
32
- " ~/input/sub/control_cmd" , rclcpp::QoS{10 },
33
- std::bind (&ControlCmdSwitcher::onSubControlCmd, this , std::placeholders::_1));
29
+ sub_sub_control_cmd_ = create_subscription<autoware_control_msgs::msg::Control>(
30
+ " ~/input/sub/control_cmd" , rclcpp::QoS{10 },
31
+ std::bind (&ControlCmdSwitcher::onSubControlCmd, this , std::placeholders::_1));
34
32
35
33
sub_election_status_main_ = create_subscription<tier4_system_msgs::msg::ElectionStatus>(
36
34
" ~/input/election/status/main" , rclcpp::QoS{10 },
@@ -41,8 +39,8 @@ ControlCmdSwitcher::ControlCmdSwitcher(const rclcpp::NodeOptions & node_options)
41
39
std::bind (&ControlCmdSwitcher::onElectionStatus, this , std::placeholders::_1));
42
40
43
41
// Publisher
44
- pub_control_cmd_ = create_publisher<autoware_control_msgs::msg::Control>(
45
- " ~/output/control_cmd" , rclcpp::QoS{1 });
42
+ pub_control_cmd_ =
43
+ create_publisher<autoware_control_msgs::msg::Control>( " ~/output/control_cmd" , rclcpp::QoS{1 });
46
44
47
45
// Initialize
48
46
use_main_control_cmd_ = true ;
0 commit comments