GithubHelp home page GithubHelp logo

Comments (5)

fujitatomoya avatar fujitatomoya commented on June 25, 2024 1

confirmed it works, just in case.

from action_bridge.

hsd-dev avatar hsd-dev commented on June 25, 2024

You will have to clone control_msgs in your ROS2 workspace as mentioned in the README. There is a dependency missing in the binaries.

from action_bridge.

fujitatomoya avatar fujitatomoya commented on June 25, 2024

still having the same problem,

root@5aa526d14948:~/ros2_intro_colcon# cd src/control_msgs/
root@5aa526d14948:~/ros2_intro_colcon/src/control_msgs# git branch
* crystal-devel
root@5aa526d14948:~/ros2_intro_colcon/src/control_msgs# cd -
/root/ros2_intro_colcon
root@5aa526d14948:~/ros2_intro_colcon# colcon build
...<snip>
--- stderr: action_bridge
/root/ros2_intro_colcon/src/action_bridge/src/action_bridge_follow_joint_trajectory.cpp:28:10: fatal error: control_msgs/action/follow_joint_trajectory.hpp: No such file or directory
 #include "control_msgs/action/follow_joint_trajectory.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/action_bridge_follow_joint_trajectory_node.dir/src/action_bridge_follow_joint_trajectory.cpp.o] Error 1
make[1]: *** [CMakeFiles/action_bridge_follow_joint_trajectory_node.dir/all] Error 2
make: *** [all] Error 2
---
Failed   <<< action_bridge      [ Exited with code 2 ]

actually follow_joint_trajectory.hpp is successfully compiled as followings,

root@5aa526d14948:~/ros2_intro_colcon# find . -type f -name follow_joint_trajectory.hpp
./install/control_msgs/include/control_msgs/action/follow_joint_trajectory.hpp
./build/control_msgs/rosidl_generator_cpp/control_msgs/action/follow_joint_trajectory.hpp

not sure if this is cz of my environment or not.

from action_bridge.

hsd-dev avatar hsd-dev commented on June 25, 2024

You can use this Dockerfile to build the package:

from osrf/ros:crystal-ros1-bridge

RUN apt-get update && apt-get install --no-install-recommends -y \
    git \
    python3-colcon-common-extensions 

RUN apt-get install -y ros-melodic-actionlib \
                       ros-melodic-actionlib-tutorials \
                       ros-melodic-control-msgs \
                       ros-melodic-roscpp \
                       ros-crystal-control-msgs \
                       ros-crystal-example-interfaces \
                       ros-crystal-rclcpp \
                       ros-crystal-rclcpp-action \
                       && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /bridge_ws/src/ && cd /bridge_ws/src/ \
    && git clone https://github.com/ipa-hsd/action_bridge.git \
    && git clone -b crystal-devel https://github.com/ros-controls/control_msgs.git \
    && cd /bridge_ws \ 
    && . /opt/ros/melodic/setup.sh \
    && . /opt/ros/crystal/setup.sh \
    && colcon build

from action_bridge.

hsd-dev avatar hsd-dev commented on June 25, 2024

I will close this for now. If you still face any issues, you can reopen it.

from action_bridge.

Related Issues (3)

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.