colcon build fail
I'm trying to run the tutorials on this page, and when I get to the step that says to run colcon build --symlink, this is the output:
Starting >>> examples_rclcpp_minimal_action_client
--- stderr: examples_rclcpp_minimal_action_client
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp: In function ‘int main(int, char**)’:
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:93:47: error: ‘WrappedResult’ is not a member of ‘rclcpp_action::ClientGoalHandle<example_interfaces::action::Fibonacci>’
rclcpp_action::ClientGoalHandle<Fibonacci>::WrappedResult wrapped_result = result_future.get();
^~~~~~~~~~~~~
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:94:10: error: ‘wrapped_result’ was not declared in this scope
switch(wrapped_result.code) {
^~~~~~~~~~~~~~
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:94:10: note: suggested alternative: ‘wait_result’
switch(wrapped_result.code) {
^~~~~~~~~~~~~~
wait_result
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:95:37: error: could not convert ‘SUCCEEDED’ from ‘rclcpp_action::ResultCode’ to ‘<type error>’
case rclcpp_action::ResultCode::SUCCEEDED:
^~~~~~~~~
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:97:37: error: could not convert ‘ABORTED’ from ‘rclcpp_action::ResultCode’ to ‘<type error>’
case rclcpp_action::ResultCode::ABORTED:
^~~~~~~
/home/bullivant/ros2_example_ws/src/examples/rclcpp/minimal_action_client/not_composable_with_cancel.cpp:100:37: error: could not convert ‘CANCELED’ from ‘rclcpp_action::ResultCode’ to ‘<type error>’
case rclcpp_action::ResultCode::CANCELED:
^~~~~~~~
make[2]: *** [CMakeFiles/action_client_not_composable_with_cancel.dir/not_composable_with_cancel.cpp.o] Error 1
make[1]: *** [CMakeFiles/action_client_not_composable_with_cancel.dir/all] Error 2
make: *** [all] Error 2
---
Failed <<< examples_rclcpp_minimal_action_client [ Exited with code 2 ]
Summary: 0 packages finished [3.36s]
1 package failed: examples_rclcpp_minimal_action_client
1 package had stderr output: examples_rclcpp_minimal_action_client
14 packages not processed
Is this error caused by my not having installed something that was required for these tutorials, or is this some problem in the current version of the tutorials (as the error message seems to imply)?
Asked by cwbullivant on 2019-03-28 19:02:43 UTC
Comments
Please do not post screenshots of terminals. There is no need, as it's all text. As-is, your question does not adhere to the support guidelines (don't post screenshots of terminals).
Please edit your question to fix this, and we can re-open.
Asked by gvdhoorn on 2019-03-29 07:53:29 UTC
The terminal screenshot was used because the terminal in question is from a VM that (for whatever reason) does not allow me to copy/paste the error message. It will take quite awhile to re-type and format the entire error message outside of the terminal.
Update: The message has been edited, and the screenshot removed. Are there any more changes required to be within standards?
Asked by cwbullivant on 2019-03-29 12:57:14 UTC
I've reopened the question for you, but in the future please make sure to use the preformatted text (
101010
) button to properly format any code or terminal output.Asked by jayess on 2019-03-29 16:41:53 UTC
If you installed crystal you'll want the crystal branch of
examples
to go with it.Asked by lucasw on 2019-03-29 18:58:01 UTC
@lucasw's comment is important:
master
changes to fast, that you must use the correct branch when building packages from source (and not trackingmaster
in all your other packages as well).Asked by gvdhoorn on 2019-03-30 02:29:31 UTC
+1 to @lucasw comment. From the tutorial page:
Asked by marguedas on 2019-03-30 09:02:59 UTC