Skip to content
Closed
Changes from all 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
8 changes: 4 additions & 4 deletions rm_chassis_controllers/src/chassis_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ void ChassisBase<T...>::update(const ros::Time& time, const ros::Duration& perio
vel_cmd_.y = ramp_y_->output();
vel_cmd_.z = cmd_vel.angular.z;
}
// test

if (cmd_rt_buffer_.readFromRT()->cmd_chassis_.follow_source_frame.empty())
follow_source_frame_ = "yaw";
else
follow_source_frame_ = cmd_rt_buffer_.readFromRT()->cmd_chassis_.follow_source_frame;
if (cmd_rt_buffer_.readFromRT()->cmd_chassis_.command_source_frame.empty())
command_source_frame_ = "bask_link";
command_source_frame_ = "yaw";
else
command_source_frame_ = cmd_rt_buffer_.readFromRT()->cmd_chassis_.command_source_frame;

Expand All @@ -173,10 +173,10 @@ void ChassisBase<T...>::update(const ros::Time& time, const ros::Duration& perio
raw();
break;
case FOLLOW:
raw();
follow(time, period);
break;
case TWIST:
raw();
twist(time, period);
break;
}

Expand Down
Loading