File tree 2 files changed +9
-0
lines changed
vehicle/autoware_raw_vehicle_cmd_converter
include/autoware_raw_vehicle_cmd_converter
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class RawVehicleCommandConverterNode : public rclcpp::Node
82
82
// !< @brief topic publisher for low level vehicle command
83
83
rclcpp::Publisher<ActuationCommandStamped>::SharedPtr pub_actuation_cmd_;
84
84
rclcpp::Publisher<Steering>::SharedPtr pub_steering_status_;
85
+ rclcpp::Publisher<Control>::SharedPtr pub_compensated_control_cmd_;
85
86
// !< @brief subscriber for vehicle command
86
87
rclcpp::Subscription<Control>::SharedPtr sub_control_cmd_;
87
88
rclcpp::Subscription<ActuationStatusStamped>::SharedPtr sub_actuation_status_;
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ RawVehicleCommandConverterNode::RawVehicleCommandConverterNode(
118
118
debug_pub_steer_pid_ = create_publisher<Float32MultiArrayStamped>(
119
119
" /vehicle/raw_vehicle_cmd_converter/debug/steer_pid" , 1 );
120
120
121
+ if (use_vehicle_adaptor_) {
122
+ pub_compensated_control_cmd_ = create_publisher<Control>(
123
+ " /vehicle/raw_vehicle_cmd_converter/debug/compensated_control_cmd" , 1 );
124
+ }
125
+
121
126
logger_configure_ = std::make_unique<autoware::universe_utils::LoggerLevelConfigure>(this );
122
127
}
123
128
@@ -156,6 +161,9 @@ void RawVehicleCommandConverterNode::publishActuationCmd()
156
161
*control_cmd_ptr_, *current_odometry_, *current_accel,
157
162
*current_steer_ptr_, *current_operation_mode)
158
163
: *control_cmd_ptr_;
164
+ if (use_vehicle_adaptor_) {
165
+ pub_compensated_control_cmd_->publish (control_cmd);
166
+ }
159
167
160
168
/* calculate actuation command */
161
169
double desired_accel_cmd = 0.0 ;
You can’t perform that action at this time.
0 commit comments