Skip to content

Commit

Permalink
Merge branch 'feature/admittance_wrench_target_rolling' of github.com…
Browse files Browse the repository at this point in the history
…:firesurfer/ros2_controllers into feature/admittance_wrench_target_rolling
  • Loading branch information
Lennart Nachtigall committed Nov 19, 2024
2 parents 86115e5 + 9bb9435 commit f9a3087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admittance_controller/src/admittance_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
namespace admittance_controller
{

static geometry_msgs::msg::Wrench add_wrenches(
geometry_msgs::msg::Wrench add_wrenches(
const geometry_msgs::msg::Wrench & a, const geometry_msgs::msg::Wrench & b)
{
geometry_msgs::msg::Wrench res;
Expand Down Expand Up @@ -289,10 +289,10 @@ controller_interface::CallbackReturn AdmittanceController::on_configure(
"~/wrench_reference", rclcpp::SystemDefaultsQoS(),
[&](const geometry_msgs::msg::WrenchStamped & msg)
{
if (msg.header.frame_id != admittance_->parameters_.ft_sensor.frame.id)
if (msg.header.frame_id != admittance_->parameters_.ft_sensor.frame.id && !msg.header.frame_id.empty())
{
RCLCPP_ERROR_STREAM(
get_node()->get_logger(), "Ignoring wrench reference as it is on the wrong frame");
get_node()->get_logger(), "Ignoring wrench reference as it is on the wrong frame: " << msg.header.frame_id << ". Expected reference frame: " << admittance_->parameters_.ft_sensor.frame_id);
return;
}
input_wrench_command_.writeFromNonRT(msg);
Expand Down

0 comments on commit f9a3087

Please sign in to comment.