Giter VIP home page Giter VIP logo

Comments (20)

traversaro avatar traversaro commented on September 25, 2024 3

The fix was merged upstream in ament/ament_cmake#484. Looking at the history of iron syncs (see https://discourse.ros.org/tag/iron), I think we could expect the fix to land in .deb in a few weeks.

from yarp-devices-ros2.

elandini84 avatar elandini84 commented on September 25, 2024 2

That should work, yes.

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024 2

I proposed a fix upstream in ROS 2 Iron in ament/ament_cmake#484 . However, even if it is accepted it would take some time to have it released as a .deb package, so we may want to find a workaround in the meanwhile.

from yarp-devices-ros2.

elandini84 avatar elandini84 commented on September 25, 2024 1

@xEnVrE thanks for the reply. I asked about cmake because I get the same exact error that you shown.
The issue has definitely something to do with CMake because when I change the order in which the two ros2_interfaces_ws packages folders are added, the error that @PasMarra has shown is not triggered by yarp_control_msgs but by map2d_nws_ros2_msgs. I'll try to come up with a solution tomorrow.

Thanks again for opening this issue

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024 1

Possibily related to ament/ament_cmake#460 .

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024 1

@traversaro I can check if it works, just the time to setup the docker container and I'll let you know!

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024 1

Sorry, there was a stupid bug, can you try in a clean build updating after 10351e6 ?

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024 1

You are right, my environment was dirty. I played a bit but I could not find an easy workaround.

from yarp-devices-ros2.

elandini84 avatar elandini84 commented on September 25, 2024

Hi @PasMarra, do you get, by any chance, an error message also from cmake?

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

I think we also got the following errors at CMake-level:

CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/ament_prefix_path.dsv"
CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/library_path.dsv"

I have reproduced it again using also ros rolling. I am start thinking the problem might be due to CMake itself.

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

Thanks a lot, that means that, meanwhile, as we only need yarp_control_msgs, we can just disable the nav part and we should be able to continue?

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024

This is a regression related to ament/ament_cmake#416, see also the related comment.

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024

@PasMarra @xEnVrE can you check if #62 solves the problem? Remember to try it on a clean build, as otherwise the AMENT_CMAKE_ENVIRONMENT_PACKAGE_GENERATION option is already initialized to ON.

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

Remember to try it on a clean build

Maybe it is a dumb question, is it ok if I remove the build folder of yarp-devices-ros2 to achieve that or do you mean something different ros2-wise?

If a standard build clean is what you meant, I have already tried it but I keep receiving the error:

-- Configuring done
CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/ament_prefix_path.dsv"
CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/library_path.dsv"
-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024

If a standard build clean is what you meant, I have already tried it but I keep receiving the error:

Yes, I mean removing the build directory (not make clean). It is strange you still get the problem, what is the output of (please run in the build directory):

cat CMakeCache.txt | grep AMENT_CMAKE_ENVIRONMENT_PACKAGE_GENERATION 

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

What I did was

rm -rf build
mkdir build
cd build
cmake ../

Then I get the errors above.

The output of what you asked is then:

AMENT_CMAKE_ENVIRONMENT_PACKAGE_GENERATION:BOOL=ON

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

Considering the last change I get

-- Configuring done
CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/ament_prefix_path.dsv"
CMake Error: Files to be generated by multiple different commands: "/home/user/yarp-devices-ros2/build/ament_cmake_environment_hooks/library_path.dsv"
-- Generating done

and

cat CMakeCache.txt | grep AMENT_CMAKE_ENVIRONMENT_PACKAGE_GENERATION 
AMENT_CMAKE_ENVIRONMENT_PACKAGE_GENERATION:BOOL=OFF

from yarp-devices-ros2.

xEnVrE avatar xEnVrE commented on September 25, 2024

Thanks for the update @traversaro

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024

The fix was merged upstream in ament/ament_cmake#484. Looking at the history of iron syncs (see https://discourse.ros.org/tag/iron), I think we could expect the fix to land in .deb in a few weeks.

Actually that was just a merge in rolling, the backport PR to iron got stuck: ament/ament_cmake#487 .

from yarp-devices-ros2.

traversaro avatar traversaro commented on September 25, 2024

The fix was merged upstream in ament/ament_cmake#484. Looking at the history of iron syncs (see https://discourse.ros.org/tag/iron), I think we could expect the fix to land in .deb in a few weeks.

Actually that was just a merge in rolling, the backport PR to iron got stuck: ament/ament_cmake#487 .

The PR was merged, and it was released in February: ament/ament_cmake@ff9a01f and https://discourse.ros.org/t/patch-release-4-and-new-packages-for-iron-irwini-2024-02-09/36006, I think we can safely close this issue.

from yarp-devices-ros2.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.