Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in teleop_turtle_key.cpp "E0349 no operator "=" matches these operands" #135

Open
mattgpaul opened this issue Oct 13, 2021 · 4 comments

Comments

@mattgpaul
Copy link

Was having failures with colcon build --merge-install for the tutorial workspace build. After finding the source of the first error that shows up under inspection, the error appears in the file of the title, on line 318. I pulled this from the repo, is there any fix to this? This error is causing the colcon build to fail.

@sequoia-hope
Copy link

I get this error too. It looks like the error has moved to line 323:

/home/taylor/Software/dev_ws/src/ros_tutorials/turtlesim/tutorials/teleop_turtle_key.cpp:323:7: error: no match for ‘operator=’ (operand types are ‘rclcpp_action::Client<turtlesim::action::RotateAbsolute>::GoalResponseCallback’ {aka ‘std::function<void(std::shared_future<std::shared_ptr<rclcpp_action::ClientGoalHandle<turtlesim::action::RotateAbsolute> > >)>’} and ‘TeleopTurtle::sendGoal(float)::<lambda(rclcpp_action::ClientGoalHandle<turtlesim::action::RotateAbsolute>::SharedPtr)>’)
  323 |       };

@audrow
Copy link
Contributor

audrow commented Jan 26, 2022

Hi @bobleeswaggs and @tlalexander, a few questions to help us find the bug:

  • What ROS distro are you using?
  • What operating system are you using?
  • Are you building from source or using binaries for your ROS 2 installation?

@sequoia-hope
Copy link

Hi @audrow thanks for the reply.
It turns out I had been using foxy but was trying to build the code for galactic. I've installed galactic and now the code builds. So my mistake!
Since the code builds, perhaps this issue could be closed.
Thanks!

@audrow
Copy link
Contributor

audrow commented Jan 27, 2022

@tlalexander, okay thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants