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

Unable to catkin_make due to missing yocs_msgs/JoystickConfig.h

asked 2018-01-24 00:13:23 -0600

Alsing gravatar image

updated 2018-01-24 00:13:51 -0600

Needed to use Yujin's Velocity Smoother, but unable to catkin_make due to missing file. No one else seemed to have this issue hence I'm opening a new question. I git cloned the devel branch.

Here is the error I got:

/home/bla/catkin_ws/src/yujin_ocs/yocs_joyop/src/joyop.cpp:15:38: fatal error: yocs_msgs/JoystickConfig.h: No such file or directory

compilation terminated.

yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/build.make:62: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o' failed

make[2]: *** [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o] Error 1

CMakeFiles/Makefile2:25342: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all' failed   
make[1]: *** [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all] Error 2

make[1]: * Waiting for unfinished jobs....

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-24 00:17:40 -0600

Thomas D gravatar image

updated 2018-01-24 08:23:49 -0600

This is the file that will generate yocs_msgs/JoystickConfig.h. In your workspace have you cloned the yocs_msgs repository in addition to the yujin_ocs repository?

Update Based on a comment from @gvdhoorn I was able to see that the packages you want are available from the ROS apt repositories. I recommend installing the packages rather than building from source, unless there is a specific reason you need a feature from the source version that is not available in the apt version.

Running the command @gvdhoorn indicated will get you everything you need, including dependencies:

sudo apt-get install ros-$distro-yocs-velocity-smoother
edit flag offensive delete link more

Comments

1

@Alsing: @Thomas D is probably right: you're missing dependencies.

See #q252478 for a generic recipe for installing packages from source.

And note that the pkg has been released for both Indigo and Kinetic, so a simple:

sudo apt-get install ros-$distro-yocs-velocity-smoother

should work.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-24 03:04:43 -0600 )edit

@Thomas D didn't realise I needed o compile yocs_msgs seperately. Thanks for the help!

Alsing gravatar image Alsing  ( 2018-01-24 04:26:23 -0600 )edit

@gvdhoon I compiled instead :)

Alsing gravatar image Alsing  ( 2018-01-24 04:26:44 -0600 )edit

Hello, I had met the similar issue, I already follow the above suggestion to : sudo apt-get install ros-kinetic-yocs-velocity-smoother

The installation works fine, and the build already passed, but looks I have the link issue and compilation terminated:

/home/{usersname}/catkin_ws/src/yujin_ocs/yocs_joyop/src/joyop.cpp:15:38: fatal error: yocs_msgs/JoystickConfig.h: No such file or directory compilation terminated. yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/build.make:62: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o' failed make[2]: * [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/src/joyop.cpp.o] Error 1 CMakeFiles/Makefile2:8887: recipe for target 'yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all' failed make[1]: [yujin_ocs/yocs_joyop/CMakeFiles/joyop.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: ** [all] Error 2 Invoking "make -j12 -l12" failed

Anyone can help? I am newbie for the ROS actually,

macleonsh gravatar image macleonsh  ( 2019-05-06 21:43:35 -0600 )edit

Do I need git clone the yocs_msgs and compile it? I think I already install it:

sudo apt-get install ros-kinetic-yocs-msgs Reading package lists... Done Building dependency tree
Reading state information... Done ros-kinetic-yocs-msgs is already the newest version (0.6.3-0xenial-20181107-005535-0800). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

macleonsh gravatar image macleonsh  ( 2019-05-06 21:47:34 -0600 )edit

@macleonsh: please post a new question. Don't post a follow-up question under the answer of an already resolved one.

If your issue is related, refer to this question in your new question.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-06 23:53:36 -0600 )edit
1

Thanks, I git clone https://github.com/yujinrobot/yocs_ms... and rebuild, now issue solved. Thanks anyway!

macleonsh gravatar image macleonsh  ( 2019-05-07 08:24:39 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-01-24 00:13:23 -0600

Seen: 991 times

Last updated: Jan 24 '18