Skip to content

Commit 86a59ca

Browse files
committed
Fix state interface to get version information from
1 parent c36e961 commit 86a59ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_controllers/src/tool_contact_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ ToolContactController::on_activate(const rclcpp_lifecycle::State& /* previous_st
151151
[&](auto& interface) { return (interface.get_name() == interface_name); });
152152
if (it != state_interfaces_.end()) {
153153
major_version_state_interface_ = *it;
154-
std::optional<double> major_version = tool_contact_result_interface_->get().get_optional();
154+
std::optional<double> major_version = major_version_state_interface_->get().get_optional();
155155
if (!major_version) {
156156
RCLCPP_ERROR(get_node()->get_logger(),
157157
"Failed to read '%s' state interface, aborting activation of controller.", interface_name.c_str());

0 commit comments

Comments
 (0)