Skip to content
Closed
Changes from 3 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
9 changes: 9 additions & 0 deletions diff_drive_controller/src/diff_drive_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,15 @@ controller_interface::CallbackReturn DiffDriveController::on_configure(
const auto odom_frame_id = tf_prefix + params_.odom_frame_id;
const auto base_frame_id = tf_prefix + params_.base_frame_id;

for (auto & joint_name : params_.left_wheel_names)
{
joint_name = tf_prefix + joint_name;
}
for (auto & joint_name : params_.right_wheel_names)
{
joint_name = tf_prefix + joint_name;
}

auto & odometry_message = realtime_odometry_publisher_->msg_;
odometry_message.header.frame_id = odom_frame_id;
odometry_message.child_frame_id = base_frame_id;
Expand Down