-
Notifications
You must be signed in to change notification settings - Fork 10
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
ros2 interface list not showing yarp msgs #63
Comments
Hi @TheArmega, how did you installed the repo? With the first or second procedure described in https://github.com/robotology/yarp-devices-ros2#installation ? |
Hi @traversaro, I installed it as it says in the first procedure, but after it didn't work for me I did this: cd yarp-devices-ros2
colcon build
cd ros2_interfaces_ws/src/yarp_control_msgs/install
cp -r yarp_control_msgs/* /opt/ros/humble/ |
Probably if you followed the first procedure, we should remove the |
Can you try (in a clean environment) with the commands modified as in #64 ? Or otherwise, you could try with the "Build with pure CMake commands" instruction. |
It worked for me when following the "Build with ROS msgs compiled in separate colcon workspace" section: Lines 33 to 46 in 02e3835
Unless I'm missing something, the install dirs of YARP plugins and ROS packages should never be mixed, which was happening in the first procedure. In that case, either ROS packages would be installed to In contrast, it feels more natural to build the ROS packages first in their own workspace, source that workspace, and then build the YARP plugins using the "system" dependencies as detailed in the above instructions. Should this be the preferred (or even only) approach? |
I guess it is a matter of taste/habit, but what is the problem in installing YARP plugins and ROS packages in the same install prefix?
I think this depends on where do you set
Isn't this the case for any repo installing YARP plugins? Either you install it in the same installation prefix of YARP and you do not set |
I think this really depends on the background of the user. For example, to me it feel really strange (and more complicated/error prone) to use two different ways to build C++ projects, manually if they do not use ROS, and via colcon if they use ROS. If you want to use colcon, why do not build also the main root project of this repo (i.e. Having said that, I think it is quite common for ROS 2 users to consider project that use ROS 2 as kind of "special" CMake projects that must be build with colcon and not just regular CMake projects (that is kind of recurring theme in ROS Discourse, see https://discourse.ros.org/t/ros2-build-tools-systems/35173 or https://discourse.ros.org/t/migrating-ros-ros2-off-of-catkin-colcon-towards-pure-cmake/12104 and these are just the first discussion I found), so any suggestion on how the documentation can be improved would be really welcome! |
Those are very good points, @traversaro. I admit being used to shoving everything into the default I think the changes you have just submitted in #71 express the intent more clearly, thanks! |
Hi, I've experienced some problems after installing the yarp-devices-ros2 repository.
When trying to use the yarp_control_msgs I've seen that ros2 wasn't able to find them.
At the end I had to copy the files into the ros humble folder, as it follows:
sudo cp -r yarp_control_msgs/* /opt/ros/humble/
After this I used the 'ros2 interface list' and was able to find them and use them.
The text was updated successfully, but these errors were encountered: