Open TimCraig opened 3 years ago
Which branch of the examples repository are you attempting to build? You have to use the foxy
branch to build against Foxy.
I'm using what comes with "Download the Zip", I assumed that would be the latest.
Ok, figuring out where to get the Foxy version and using it solved the problem. Considering the people interested most in the examples are new to ROS2, a note in in the ReadMe might be useful indicating how to get the right version and that it's important.
While I wouldn't be opposed to adding a note in the README, this isn't our usual entry point for new users. We usually recommend people start with the tutorials at https://index.ros.org/doc/ros2/Tutorials/#tutorials , which have instructions on how to install the examples from binaries (and generate your own examples).
Just out of curiosity, how did you end up directly at this repository?
I don't remember exactly but probably one of my forays looking for real ROS2 example code on github. Just search for ROS2 and filter with recently updated. Installing examples and running them from binaries seems a waste of time for a developer. Taking these examples and learning how to modify them to suit my cases seems to me more productive since documentation is pretty sparse. I think I first grabbed the examples under Dashing and have checked for updates periodically.
Installing examples and running them from binaries seems a waste of time for a developer.
Yes, that's why the tutorials start with installing from binaries, and then go on to explain how to write your own code (see https://index.ros.org/doc/ros2/Tutorials/Writing-A-Simple-Cpp-Publisher-And-Subscriber/, for example).
That all being said, since the examples here are one possible entry point, a change to the README.md to explain that you must build the branch corresponding to your distribution would not be a bad idea. If you'd like to contribute that, I'd be happy to review.
I've written my own pub/sub pair for a real device, service server and client, and action. What I'm looking for lately are the bells and whistles, QoS, error handling, and advance launch details. Right now I'm cooling my heels in Standford's Cancer Clinic waiting for a chemo treatment that is going to put me on my ass for about a week so modifying the README.md won't be in the cards so some time. Any coding probably for that matter. One of the reasons things are going slowly for me.
Hi I am trying to follow lecture-2 of Autoware Auto and I am also getting the same error when I try to build the samples. See attached snapshot. Am using ade docker.
@kilocharlievictor This doesn't seem related to this issue. Please ask a question on https://answers.ros.org, and when you do please copy/paste the text from the terminal instead of taking a screenshot so others can find it by searching.
Bug report`
Required Info:
Steps to reproduce issue
I've had a problem getting the examples to build for a while. I first thought something had gotten out of sync so I got around to creating a new virtualbox with Windows10 host and Ubuntu-MATE 20.04 client and pristine install of the Foxy binaries. rclcpp_minimal_action_client fails to build. Below is the output from the compiler.