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

eirikaso's profile - activity

2021-05-10 11:28:23 -0500 received badge  Nice Answer (source)
2020-04-30 05:41:23 -0500 received badge  Famous Question (source)
2020-04-17 07:58:54 -0500 received badge  Notable Question (source)
2020-02-09 12:36:02 -0500 received badge  Popular Question (source)
2020-02-06 09:53:30 -0500 marked best answer catkin install missing dynamic reconfigure header file

I've been created a package (named "stereo") that uses dynamic reconfigure for some stereo matching parameters and it has been working fine until i tried to catkin install them instead of just catkin build without the install flag.

I have a file called "stereo_params.cfg" inside a cfg folder. The corresponding header file is autogenerated successfully in "cfg/cpp/stereo/stereo_paramsConfig.h", and a python file is autogenerated in "src/stereo/cfg/stereo_paramsConfig.py".

When I run catkin build I get the following error:

CMake Error at cmake_install.cmake:132 (file): file INSTALL cannot find "/home/eirik/catkin_ws/devel/.private/stereo/include/stereo/stereo_paramsConfig.h".

I've been trying to get this working for hours now but with no succsess.

My CMakeList looks like this:

cmake_minimum_required(VERSION 2.8.3)
project(stereo)

add_compile_options(-std=c++11)


find_package(catkin REQUIRED COMPONENTS
  cv_bridge
  image_transport
  roscpp
  rospy
  sensor_msgs
  std_msgs
  dynamic_reconfigure
  tf
)

find_package(OpenCV REQUIRED)

find_package(realsense2 2.23.0)
if (NOT realsense2_FOUND)
    message(FATAL_ERROR "REALSENSE ERROR")
endif()



## Generate dynamic reconfigure parameters in the 'cfg' folder
generate_dynamic_reconfigure_options(
   cfg/stereo_params.cfg
)


catkin_package(
  INCLUDE_DIRS include cfg/cpp
  CATKIN_DEPENDS cv_bridge image_transport roscpp rospy sensor_msgs std_msgs dynamic_reconfigure
)


include_directories(
  include
  cfg/cpp/${PROJECT_NAME}
  ${catkin_INCLUDE_DIRS}
  ${realsense2_INCLUDE_DIRS}
)



add_executable(publish_ROS_Y16
  src/publish_ROS_Y16.cpp
  src/stereo_calc.cpp
)

add_executable(publish_ROS_ROV
  src/publish_ROS_ROV.cpp
  src/capture.cpp
  src/measure.cpp
)

add_executable(verify_calibration_node
  src/verify_calibration_node.cpp
  src/stereo_calc.cpp
)

target_link_libraries(publish_ROS_Y16
  ${catkin_LIBRARIES}
  ${OpenCV_LIBS}
  ${realsense2_LIBRARY}
  yaml-cpp
)

target_link_libraries(publish_ROS_ROV
  ${catkin_LIBRARIES}
  ${OpenCV_LIBS}
  ${realsense2_LIBRARY}
  yaml-cpp
)

target_link_libraries(verify_calibration_node
  ${catkin_LIBRARIES}
  ${OpenCV_LIBS}
   yaml-cpp
)

## Mark executables and/or libraries for installation
install(TARGETS publish_ROS_ROV
  ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)


install(DIRECTORY include/${PROJECT_NAME}
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  FILES_MATCHING PATTERN "*.h" PATTERN "*hpp"
  PATTERN ".svn" EXCLUDE
)

Build log with error message is displayed here:

[ 26%] Built target stereo
[ 46%] Built target verify_calibration_node
[ 53%] Generating dynamic reconfigure files from cfg/stereo_params.cfg: /home/eirik/catkin_ws/devel/.private/stereo/include/stereo/stereo_paramsConfig.h /home/eirik/catkin_ws/devel/.private/stereo/lib/python2.7/dist-packages/stereo/cfg/stereo_paramsConfig.py
Generating reconfiguration files for stereo_params in stereo
[ 53%] Built target stereo_gencfg
[ 80%] Built target publish_ROS_ROV
[100%] Built target publish_ROS_Y16
Install the project...
-- Install configuration: ""
-- Installing: /home/eirik/catkin_ws/install/_setup_util.py
-- Installing: /home/eirik/catkin_ws/install/env.sh
-- Installing: /home/eirik/catkin_ws/install/setup.bash
-- Installing: /home/eirik/catkin_ws/install/local_setup.bash
-- Installing: /home/eirik/catkin_ws/install/setup.sh
-- Installing: /home/eirik/catkin_ws/install/local_setup.sh
-- Installing: /home/eirik/catkin_ws/install/setup.zsh
-- Installing: /home/eirik/catkin_ws/install/local_setup.zsh
-- Installing: /home/eirik/catkin_ws/install/.rosinstall
CMake Error at cmake_install.cmake:132 (file):
  file INSTALL cannot find
  "/home/eirik/catkin_ws/devel/.private/stereo/include/stereo/stereo_paramsConfig.h".


Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1

I've found someone with a similar error here, but I do not have discrepancies in my naming as was the issue in that post.

2020-02-06 09:53:27 -0500 edited answer catkin install missing dynamic reconfigure header file

At last found the error which was related to the .cfg file where i had imported some old method that seems to be used fo

2020-02-06 09:53:08 -0500 edited answer catkin install missing dynamic reconfigure header file

At last found the error which was related to the .cfg file where i had imported some old method that seems to be used fo

2020-02-06 09:52:54 -0500 answered a question catkin install missing dynamic reconfigure header file

At last found the error which was related to the .cfg file where i had imported some old method that seems to be used fo

2020-02-06 09:52:54 -0500 received badge  Rapid Responder (source)
2020-02-06 09:50:23 -0500 commented question catkin install missing dynamic reconfigure header file

That was not it, but finally found the error. Will update with an answer

2020-02-06 09:16:33 -0500 commented answer libbondcpp.so: undefined reference to core ROS functions & packages error

what if you put in find_package(bondcpp) together with your other find_packages?

2020-02-06 08:46:57 -0500 received badge  Rapid Responder (source)
2020-02-06 08:46:57 -0500 answered a question libbondcpp.so: undefined reference to core ROS functions & packages error

I think you need to link your libbondcpp library under "target_link_libraries" like this: target_link_libraries(zed_wra

2020-02-06 08:19:24 -0500 asked a question catkin install missing dynamic reconfigure header file

catkin install missing dynamic reconfigure header file I've been created a package (named "stereo") that uses dynamic re

2019-08-02 06:54:42 -0500 received badge  Famous Question (source)
2019-08-02 06:54:42 -0500 received badge  Notable Question (source)
2019-03-22 10:09:08 -0500 marked best answer Edit encoding of sensor_msgs/Image message

I have a sensor_msgs/Image message that I'm unable to use with standard ROS packages like stereo_image_proc because the "encoding" is described as "8UC1". I want it to be interpreted as "mono8" and want to change the string in the "encoding" parameter of the message.

void imageCallback(sensor_msgs::ImageConstPtr& msg)
{
    ROS_INFO("Message received");
    msg->encoding.at<std::string>(0,0) = "mono8";
}

When I do it like above I get the error message "type name is not allowed" when compiling. I have tried all sorts of alternatives but can't seem to find it out. Can anyone help me on this?

2019-03-22 10:09:07 -0500 commented answer Edit encoding of sensor_msgs/Image message

Yes, thank you. I just tested it 30 minutes ago and got it working :)

2019-03-22 10:07:00 -0500 received badge  Popular Question (source)
2019-03-21 16:58:01 -0500 commented answer Edit encoding of sensor_msgs/Image message

Thank you. I have recorded some .bag files with the Intel realsense camera using their ROS driver. Unfortunately they sa

2019-03-21 12:22:17 -0500 edited question Edit encoding of sensor_msgs/Image message

Edit encoding of sensor_msgs/Image message I have a sensor_msgs/Image message that I'm unable to use with standard ROS p

2019-03-21 12:09:41 -0500 asked a question Edit encoding of sensor_msgs/Image message

Edit encoding of sensor_msgs/Image message Hi I have a sensor_msgs/Image message that I'm unable to use with standard RO

2019-03-21 03:58:13 -0500 received badge  Famous Question (source)
2019-03-21 03:53:45 -0500 received badge  Popular Question (source)
2019-03-21 03:53:45 -0500 received badge  Notable Question (source)
2019-03-12 16:42:32 -0500 received badge  Notable Question (source)
2019-03-12 16:42:32 -0500 received badge  Popular Question (source)
2019-03-12 16:42:32 -0500 received badge  Famous Question (source)
2018-08-22 10:58:04 -0500 received badge  Famous Question (source)
2018-08-22 10:58:04 -0500 received badge  Notable Question (source)
2018-08-17 06:54:50 -0500 received badge  Famous Question (source)
2018-06-14 04:10:17 -0500 received badge  Famous Question (source)
2018-06-14 04:10:17 -0500 received badge  Popular Question (source)
2018-06-14 04:10:17 -0500 received badge  Notable Question (source)
2018-05-29 02:54:55 -0500 edited answer Calculate position of robot

That is absolutely possible, but it is based on some intricate calculations that you need to do. The particular you are

2018-05-29 02:53:52 -0500 answered a question Calculate position of robot

That is absolutely possible, but it is based on some intricate calculations that you need to do. The particular you are

2018-05-29 02:44:44 -0500 asked a question Video feed freeze on mouse click event OpenCV

Video feed freeze on mouse click event OpenCV Hi I'm doing some work on stereo vision using ROS and OpenCV, and are curr

2018-05-22 02:46:01 -0500 marked best answer Running a node on multiple CPU cores

Hi I am trying to publish a camera stream using the "uvc_camera" ( http://wiki.ros.org/uvc_camera ) package. All works well, but I get a low framerate on high resolution. This seems to be due to cpu overload. When I check the cpu usage with "htop", only one core seems to be used by ROS and all the capacity is used. On the other cores however, only avout 20% capacity is used.

Is there any way to make ROS run this node using multiple cpu cores?

2018-05-17 03:24:35 -0500 received badge  Popular Question (source)
2018-05-16 09:26:33 -0500 asked a question Running a node on multiple CPU cores

Running a node on multiple CPU cores Hi I am trying to publish a camera stream using the "uvc_camera" (http://wiki.ros.o

2018-04-05 04:18:13 -0500 commented answer missing libv4l2.h file during compilation

Thank you! I've just been fiddeling blindly around until it works :D This will make things easier!

2018-04-05 04:01:19 -0500 marked best answer missing libv4l2.h file during compilation

Hi I'm trying to compile a package on an odroid but get the error that I'm missing libv4l2.h that is a dependency for the camera driver package I'm installing ( http://wiki.ros.org/uvc_camera ). I have already installed and tested the package on my desktop computer, but my cameras will be connected to the Odroid.

I have installed the v4l2 using the

sudo apt-get install v4l-utils

command. I thought this would install all the files and headers I needed but apparently not. I can't remember to have done anything else on my desktop to get it working. Anyone have any tips on this? I think there are some other .h files missing as well, but I don't think the compiler picked them up as the compilation was terminated due to this error

Here is the error I receive

In file included from /root/catkin_ws/src/camera_umd/uvc_camera/src/stereo.cpp:6:0:/root/catkin_ws/src/camera_umd/uvc_camera/include/uvc_cam/uvc_cam.h:26:21: fatal error: libv4l2.h: No such file or directory compilation terminated.
2018-04-05 04:01:18 -0500 received badge  Commentator
2018-04-05 04:01:18 -0500 commented answer missing libv4l2.h file during compilation

I used catkin build if that is what you mean. Didn't use rosdep prior to that. Maybe that would have fixed it automatica