colcon - Issues BuildingRunning ROS2 PKG in c++ - Stack Overflow

I'm working on a ROS2 (Humble) package called signal_pkg inside my workspace:~DevProjekteros2

I'm working on a ROS2 (Humble) package called signal_pkg inside my workspace:

~/Dev/Projekte/ros2/rosmaster_ws/src/signal_pkg/

It contains two C++ nodes:

normal_pub.cpp (publisher)

blinker_sub.cpp (subscriber)

My structure looks like this:

rosmaster_ws/

|-src/

└── blinker_pkg/

   ├── CMakeLists.txt

   ├── package.xml

   └── src/

       ├── normal_pub.cpp

       └── blinker_sub.cpp

Github link to the code:

Both CMakeLists.txt and package.xml use the name signal_pkg.

What works:

colcon build finishes successfully

The executables normal_pub and blinker_sub appear in:

install/blinker_pkg/lib/blinker_pkg/

package.xml is installed correctly in:

install/blinker_pkg/share/blinker_pkg/package.xml

Additional (possibly related) build warning:

During every build I see this warning but 2just in this WS:

CMake Warning:
  Manually-specified variables were not used by the project:
    CATKIN_INSTALL_INTO_PREFIX_ROOT

I'm not using Catkin, but it still appears. I'm not sure where this is coming from. I never used ros1.

What doesn’t work:

Even after source install/setup.bash, running:

ros2 pkg list | grep blinker_pkg

returns nothing, and:

ros2 run blinker_pkg blinker_sub

returns:

Package 'blinker_pkg' not found

What am i missing?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743778719a4505709.html

相关推荐

  • colcon - Issues BuildingRunning ROS2 PKG in c++ - Stack Overflow

    I'm working on a ROS2 (Humble) package called signal_pkg inside my workspace:~DevProjekteros2

    7天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信