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

fehlfarbe's profile - activity

2023-03-23 03:55:43 -0500 received badge  Famous Question (source)
2022-05-10 08:59:39 -0500 received badge  Enlightened (source)
2022-05-10 08:59:39 -0500 received badge  Good Answer (source)
2022-04-06 10:48:09 -0500 received badge  Nice Question (source)
2021-04-26 08:21:55 -0500 received badge  Good Question (source)
2020-05-28 04:56:51 -0500 received badge  Nice Question (source)
2020-05-19 09:00:19 -0500 received badge  Notable Question (source)
2020-05-19 09:00:19 -0500 received badge  Popular Question (source)
2020-02-18 02:45:03 -0500 received badge  Supporter (source)
2020-02-18 02:44:59 -0500 marked best answer Library with different OpenCV version crashes

Hi,

I'm writing a library (dps_calib) without ROS dependencies that depends on OpenCV 4.2 with aruco and camera calibration modules. My test program (print_boards) takes my library to generate, save and load some YAML files with markerboard descriptions which runs without problems. But when I use the library in a ROS node with cv_bridge (for Images/Mat converting) it always crashes with segfaults when I try to open a YAML file. I assume the problem is that cv_bridge links to libopencv_core.so.3.2 and the library links to 4.2 because I get similar effects when I add ${catkin_LIBRARIES} to my test program. When I link my library to OpenCV 3.2 I don't have any problems.

Is this some problem with my CMakeLists.txt or is it just impossible to use multiple libraries that depend on different OpenCV versions?

My system: Linux Mint 19.1 Tessa ROS Melodic

CMakeLists.txt snippet:

find_package(catkin REQUIRED COMPONENTS
    roscpp
    rospy
    std_msgs
    sensor_msgs
    geometry_msgs
    message_generation
    genmsg
    actionlib_msgs
    actionlib
    image_transport
    cv_bridge
    tf
)

find_package(OpenCV 4 REQUIRED)

## Declare a C++ library
add_library(dps_calib
    src/dps_calib/DPSCalib.cpp
)

target_link_libraries(dps_calib
        opencv_core
        opencv_imgproc
        opencv_aruco
        )

## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

## position calibration
add_executable(calibration src/calibration_node.cpp src/DPSCalibrationNode.cpp)
add_dependencies(calibration dps_calib ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(calibration
        dps_calib
        ${catkin_LIBRARIES}
)

## print boards and so on
add_executable(print_boards src/print_boards.cpp)
add_dependencies(print_boards dps_calib ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS} )
target_link_libraries(print_boards
#        ${catkin_LIBRARIES}
        dps_calib
        opencv_highgui
        opencv_core
)

ldd dps_calib/calibration | grep opencv_:

libopencv_core.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 (0x00007ff5162d6000)
libopencv_core.so.4.2 => /usr/local/lib/libopencv_core.so.4.2 (0x00007ff513b3b000)
libopencv_aruco.so.4.2 => /usr/local/lib/libopencv_aruco.so.4.2 (0x00007ff512afa000)
libopencv_imgcodecs.so.4.2 => /usr/local/lib/libopencv_imgcodecs.so.4.2 (0x00007ff511467000)
libopencv_imgproc.so.4.2 => /usr/local/lib/libopencv_imgproc.so.4.2 (0x00007ff50f4cc000)
libopencv_calib3d.so.4.2 => /usr/local/lib/libopencv_calib3d.so.4.2 (0x00007ff50d9cd000)
libopencv_features2d.so.4.2 => /usr/local/lib/libopencv_features2d.so.4.2 (0x00007ff50b4ff000)
libopencv_flann.so.4.2 => /usr/local/lib/libopencv_flann.so.4.2 (0x00007ff50b253000)
2020-02-17 11:04:26 -0500 asked a question Library with different OpenCV version crashes

Library with different OpenCV version crashes Hi, I'm writing a library (dps_calib) without ROS dependencies that depen

2019-03-05 08:57:46 -0500 received badge  Nice Answer (source)
2019-02-22 05:32:45 -0500 received badge  Famous Question (source)
2018-10-18 14:45:30 -0500 received badge  Notable Question (source)
2018-10-18 07:32:53 -0500 edited question Docker with rqt problem with black dialog/menu/dropdown

Docker with rqt problem with black dialog/menu/dropdown Hi, I created a docker container based on osrf/ros:kinetic-desk

2018-10-18 07:27:02 -0500 commented answer Docker with rqt problem with black dialog/menu/dropdown

I already tried --env="QT_X11_NO_MITSHM=1". When I resize the window the content gets visible.

2018-10-13 13:53:01 -0500 received badge  Popular Question (source)
2018-10-01 17:08:11 -0500 asked a question Docker with rqt problem with black dialog/menu/dropdown

Docker with rqt problem with black dialog/menu/dropdown Hi, I created a docker container based on osrf/ros:kinetic-desk

2018-08-08 01:37:07 -0500 marked best answer pylon_camera Error: Grab was not successful

Hi,

I want to capture images from a Basler acA1300-60gm and the ROS pylon_camera node. I can open and control the camera with Pylon's PylonViewerApp. But when I'm starting the ROS node with roslaunch pylon_camera pylon_camera_node.launch I get error messages that the frames can't be grabbed:

started roslaunch server http://192.168.1.2:45055/

SUMMARY
========

PARAMETERS
 * /pylon_camera_node/binning_x: 2
 * /pylon_camera_node/binning_y: 2
 * /pylon_camera_node/camera_frame: pylon_camera_node
 * /pylon_camera_node/camera_info_url: 
 * /pylon_camera_node/device_user_id: 1
 * /pylon_camera_node/image_encoding: mono8
 * /pylon_camera_node/inter_pkg_delay: 11772
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES
  /
    pylon_camera_node (pylon_camera/pylon_camera_node)

auto-starting new master
process[master]: started with pid [10507]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to ba1098f6-28e9-11e7-84cf-f44d30679130
process[rosout-1]: started with pid [10520]
started core service [/rosout]
process[pylon_camera_node-2]: started with pid [10529]
binning x is given and has value 2
binning y is given and has value 2
[ INFO] [1493036997.880801762]: Trying to open the following camera: 1
[ INFO] [1493036998.138585721]: Found the desired camera with DeviceUserID 1: acA1300-60gm
[ INFO] [1493036998.407568803]: Cam has binning range: x(hz) = [1 - 4], y(vt) = [1 - 4].
[ INFO] [1493036998.408075961]: Cam has exposure time range: [10 - 916000] measured in microseconds.
[ INFO] [1493036998.408277173]: Cam has gain range: [0 - 3] measured in device specific units.
[ INFO] [1493036998.411048207]: Cam has gammma range: [0 - 3.99998].
[ INFO] [1493036998.412463342]: Cam has pylon auto brightness range: [50 - 205] which is the average pixel intensity.
[ INFO] [1493036998.429420227]: Cam supports the following [GenAPI|ROS] image encodings: ['Mono8'|'mono8'] ['Mono12'|'NO_ROS_EQUIVALENT'] ['Mono12Packed'|'NO_ROS_EQUIVALENT'] ['YUV422Packed'|'NO_ROS_EQUIVALENT'] ['YUV422_YUYV_Packed'|'NO_ROS_EQUIVALENT'] 
[ERROR] [1493036998.676944253]: Error: 3774873620 The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable. To fix this, try increasing the camera's Inter-Packet Delay in the Transport Layer category to reduce the required bandwidth, and adjust the camera's Packet Size setting to the highest supported frame size.
[ INFO] [1493036998.729242950]: CameraInfoURL needed for rectification! ROS-Param: '/pylon_camera_node/camera_info_url' = '' is invalid!
[ WARN] [1493036998.729288645]: Will only provide distorted /image_raw images!
[ INFO] [1493036998.777814074]: Setting horizontal binning_x to 2
[ WARN] [1493036998.777900512]: The image width of the camera_info-msg will be adapted, so that the binning_x value in this msg remains 1
[ INFO] [1493036998.834390106]: Setting vertical binning_y to 2
[ WARN] [1493036998.834634538]: The image height of the camera_info-msg will be adapted, so that the binning_y value in this msg remains 1
[ INFO] [1493036998.839134313]: Startup settings: encoding = 'mono8', binning = [2, 2], exposure = 5000, gain = 0, gamma = 1, shutter mode = default_shutter_mode
[ INFO] [1493036998.840824354]: Start image grabbing if node connects to topic with a frame_rate of: 5 Hz
[ INFO] [1493036998.841150046]: Camera not calibrated

When I start the ROS image viewer roslaunch pylon_camera pylon_camera_node.launch I dont't get images but more error messages from the pylon_camera_node:

[ WARN] [1493037429.575879168]: Pylon camera returned invalid image! Skipping
[ERROR] [1493037429.784726148]: Error: 3774873620 The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable ...
(more)
2018-08-08 01:37:04 -0500 marked best answer Generate ROS msg from asn1 or c file

Hi,

I'm writing a driver for a VANET transceiver (IEEE 802.11p WLAN) to display vehicles and infrastructures that send CAM/DENM messages. The device redirects all received VANET messages via Ethernet/UDP to my ROS computer. The specifications for the message structures are in asn1 format. So I generated C-code with the ASN.1 compiler asn1c to decode the received UDP packets into C structures. But now I want to publish these structures as ROS messages so I have to create .msg files. I don't want to create these messages by hand because the VANET messages contain many nested containers and so on.

Is there a tool to generate ROS msg files from asn1 or c files?

2018-07-05 11:48:26 -0500 received badge  Famous Question (source)
2018-03-19 11:19:29 -0500 received badge  Notable Question (source)
2018-03-19 08:51:47 -0500 marked best answer hector_slam with Sick TIM561

Hi,

we are working with a robot in a garage or production hall environment to test some car sensors. For mapping we tried an RPlidar (360°) with hector_mapping which is working very well out of the box. Unfortunally the RPlidar has problems to detect parts with black paint or car tires so we tried an Sick TiM561-2050101 which has an angle of 270° and better resolution. Despite the higher frame rate (10Hz vs. 15Hz) and better resolution (0,9°/~400pts vs. 0,33°/~800pts) hector_mapping can't match the map on rotations. It's only working on very slow speeds. Mapping with linear movement seems to work on moderate speed. We tried:

  • reduce the frame rate
  • reduce the number of points
  • moved to a faster computer (from UDOO x86 Ultra on the robot to Intel NUC with i7 cpu)
  • reduce the FOV

The laser data and slam_cloud is published with ~15Hz.

Why does it work out of the box with RPLidar but not with the Sick LIDAR?

2018-03-19 08:51:47 -0500 received badge  Scholar (source)
2018-03-19 08:51:42 -0500 answered a question hector_slam with Sick TIM561

The solution was simple. We have an UDOO x86 Ultra on the robot where hector_slam is running and a control computer (Int

2018-03-18 14:53:10 -0500 received badge  Popular Question (source)
2018-03-05 10:45:10 -0500 edited question hector_slam with Sick TIM561

hector_slam with Sick TIM561 Hi, we are working with a robot in a garage or production hall environment to test some ca

2018-03-05 10:44:51 -0500 edited question hector_slam with Sick TIM561

hector_slam with Sick TIM561 Hi, we are working with a robot in a garage or production hall environment to test some ca

2018-03-05 10:44:51 -0500 received badge  Editor (source)
2018-03-05 05:36:15 -0500 asked a question hector_slam with Sick TIM561

hector_slam with Sick TIM561 Hi, we are working with a robot in a garage or production hall environment to test some ca

2018-02-06 02:48:24 -0500 received badge  Famous Question (source)
2018-02-05 04:45:01 -0500 received badge  Notable Question (source)
2017-06-01 19:07:34 -0500 received badge  Famous Question (source)
2017-05-11 00:39:38 -0500 received badge  Popular Question (source)
2017-05-10 13:05:14 -0500 received badge  Self-Learner (source)
2017-05-10 13:05:14 -0500 received badge  Teacher (source)
2017-05-10 11:39:25 -0500 received badge  Student (source)
2017-05-10 09:14:14 -0500 asked a question Generate ROS msg from asn1 or c file

Generate ROS msg from asn1 or c file Hi, I'm writing a driver for a VANET transceiver (IEEE 802.11p WLAN) to display ve

2017-05-10 08:40:37 -0500 answered a question pylon_camera Error: Grab was not successful

I solved the problem by looking at the inter-pkg-delay and MTU in PylonViewerApp that was set to inter-pkg-delay: 0 and

2017-05-10 08:28:23 -0500 received badge  Notable Question (source)
2017-04-29 05:31:23 -0500 received badge  Enthusiast
2017-04-27 15:55:43 -0500 received badge  Popular Question (source)
2017-04-24 08:23:47 -0500 asked a question pylon_camera Error: Grab was not successful

pylon_camera Error: Grab was not successful Hi, I want to capture images from a Basler acA1300-60gm and the ROS pylon_c