yarp
yarp copied to clipboard
Error generation from .msg files when using yarpidl_rosmsg
trafficstars
Describe the bug In the use-case where the .msg files and/or .srv files are located in the ROS catkin_ws files, the script cmake/yarpIDL.cmake has errors
To Reproduce
I created the repository yarp-ros-srv-msg-example, where the branch generation-issue contains the files to replicate the error, and the required packages.
Expected behavior If you run the commands
yarpidl_rosmsg roscpp_tutorials/TwoInts.srv --out ./
yarpidl_rosmsg rospy_tutorials/HeaderString.msg --out ./
yarpidl_rosmsg tf2_msgs/FrameGraph.srv --out ./
The result is correct, but when you run the similar command using yarp_idl_to_dir(), it does not work.
Configuration (please complete the following information):
- OS: Ubuntu 18.04
- yarp version: 3.4.101+20210524.9+git10dc2b5fb+dirty
- compiler: gcc 7.5.0
Additional context