ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Can't connect custom msg to publisher and subscriber.

asked 2022-11-03 09:31:01 -0500

Edvard gravatar image

Hi. Sorry for all mistakes, English is not my native language. So, I created custom .msg and tested it with not_composable.cpp simple publisher and subscriber that was taken from here in separate package and project has successfully builded. After that I used same CMakeLists.txt and package.xml comands and used them in my original package and I have following error:

By not providing "Findminicar_control.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "minicar_control", but CMake did not find one.

  Could not find a package configuration file provided by "minicar_control"
  with any of the following names:

    minicar_controlConfig.cmake
    minicar_control-config.cmake

  Add the installation prefix of "minicar_control" to CMAKE_PREFIX_PATH or
  set "minicar_control_DIR" to a directory containing one of the above files.
  If "minicar_control" provides a separate development package or SDK, be
  sure it has been installed.

Where minicar_control is package that contains my .msg files and in this package I create publisher and subscriber. This method works normally with my test package. .msg was created using this guide and added to package with commands that are shown in this duide. Appreciate any help and suggestions

edit retag flag offensive close merge delete

Comments

1

I am sorry, but are the publisher and the .msg files in the same package? If yes, then you need a few changes in CMakeLists.txt file as shown in the following question: #q402196

ravijoshi gravatar image ravijoshi  ( 2022-11-05 08:29:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-07 01:16:22 -0500

Edvard gravatar image

Link that @ravijoshi provided is solved my problem. Thank you very much for your help

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-11-03 09:31:01 -0500

Seen: 146 times

Last updated: Nov 07 '22