Git Product home page Git Product logo

Comments (8)

kenyak-robot avatar kenyak-robot commented on August 16, 2024 1

i have problem with ros2 run groot Groot . the package was not found

from groot.

pauldinh avatar pauldinh commented on August 16, 2024

@magi-dalmau I put in a PR to address this if you wanted to test it.

from groot.

danem avatar danem commented on August 16, 2024

@pauldinh I'm having the same problem. I've tried your fix, but I'm still getting a linker error.

I've tried installing behaviortree-cpp with apt (ie: apt-get install ros-melodic-behavior-tree-cpp) and building it with catkin.

edit:

Here is the partial output of catkin build --get-env groot:

typeset -x ROS_DISTRO=melodic
typeset -x LESSOPEN='| /usr/bin/lesspipe %s'
typeset -x PATH=/workspace/install/bin:/opt/ros/melodic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
typeset -x HOME=/root
typeset -x LD_LIBRARY_PATH=/workspace/install/lib:/opt/ros/melodic/lib:/workspace/devel/lib

Inside /workspace/install/lib I have libbehaviortree_cpp_v3.so.

from groot.

pauldinh avatar pauldinh commented on August 16, 2024

@danem Can you verify what target(s) you're getting the linker error on? The possible targets are:

  • behavior_tree_editor
  • Groot
  • editor_test
  • replay_test

The output of catkin build VERBOSE=1 could be helpful if you can / are allowed to post it.

Also, I neglected to mention my environment:

  • 18.04 + ROS Melodic
  • catkin tools (and not catkin_make) configured to use an install space [0]
  • compiling BehaviorTree.CPP from source

(my catkin build --get-env groot looks similar to yours)

I'm compiling BehaviorTree.CPP from source because the latest ROS Melodic sync does not have this commit. If I attempt to compile Groot using ros-melodic-behaviortree-cpp-v3, I get an error regarding flatbuffers/stl_emulation.h. That said, I temporarily modified the include_directories for Groot so it could find flatbuffers/stl_emulation.h (on master), got the linker error(s), switched to the PR branch, and did a catkin clean && catkin build and everything compiled successfully. I then uninstalled the ros-melodic-behaviortree-cpp-v3 package and repeated the same with BehaviorTree.CPP from source (and undid the temporary include_directories change). Got the linker errors on master but they compiled on the PR branch.

I wouldn't be surprised if I'm missing something but I can't seem to reproduce the error on my end.

[0] I noticed I cannot do rosrun groot Groot using the install space. BehaviorTree.CPP is not configured to use the install space from what I can tell. But all of the above applies when the workspace is configured for devel space.

from groot.

danem avatar danem commented on August 16, 2024

@pauldinh thanks for the work.

I've commented out the CompileTest( ... ) lines found in Groot/test/CmakeLists.txt and that fixed the build. So it seems both replay_test and editor_test were the problems.

I'm also finding that the Groot executable isn't placed in the install space, but instead in devel/lib/groot.

from groot.

pauldinh avatar pauldinh commented on August 16, 2024

Great, glad it worked out for you!

The changes in the commit should have addressed the tests as well, not sure why you had to go through the trouble of commenting it out. If you can, a verbose log of your catkin build would be helpful.

from groot.

danem avatar danem commented on August 16, 2024

Here is the output:

build.make.033.log

It looks like it cannot link the behaviortree_cpp_v3 library. Perhaps it's because I'm not using the BehaviorTree submodule?

from groot.

facontidavide avatar facontidavide commented on August 16, 2024

fixed, thanks to @pauldinh

from groot.

Related Issues (20)

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.