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

evk02's profile - activity

2018-01-04 12:17:27 -0500 received badge  Self-Learner (source)
2017-05-16 19:34:28 -0500 marked best answer Compiling new package causing roscore command not found

I'm trying to compile a new package with catkin_make_isolated but after visibly successful installation my I receive roscore and catkin_make, etc command not found. My only option is to reload from an earlier backup to restore my ROS.

The steps I'm following:

  1. Installing roscopter on Hydro from here: ( https://github.com/epsilonorion/rosco... )
    1. I place the roscore source in the /src library
    2. compile mavlink with sudo python setup.py install
  2. Run catkin_make:

    catkin_make_isolated --pkg <my_package_name> --install
    
  3. Roscore is still working until I don't restart, after that command not found

The .bashrc does refer to the install_isolated/setup.bash, still no roscore or catkin_make, etc

2015-01-28 11:06:31 -0500 received badge  Guru (source)
2015-01-28 11:06:31 -0500 received badge  Great Answer (source)
2014-12-02 15:40:56 -0500 received badge  Popular Question (source)
2014-12-02 15:40:56 -0500 received badge  Famous Question (source)
2014-12-02 15:40:56 -0500 received badge  Notable Question (source)
2014-09-25 22:50:01 -0500 received badge  Famous Question (source)
2014-07-03 18:10:22 -0500 received badge  Enlightened (source)
2014-06-30 20:23:30 -0500 received badge  Good Answer (source)
2014-05-29 02:27:16 -0500 received badge  Popular Question (source)
2014-05-29 02:27:16 -0500 received badge  Notable Question (source)
2014-05-12 09:44:16 -0500 received badge  Famous Question (source)
2014-04-22 01:01:48 -0500 received badge  Nice Answer (source)
2014-04-20 06:56:47 -0500 marked best answer Libopencv undefined reference to 'header'

I'm trying to compile ROS on a Raspberry Pi (Raspbian) following these Debian installation instructions and got to the point to compile ROS, which fails at compiling opencv with undefined reference to 'header':

[ 97%] Built target opencv_videostab
[ 98%] Built target opencv_haartraining_engine
Linking CXX executable ../../bin/opencv_createsamples
../../lib/libopencv_highgui.so.2.4.6: undefined reference to `header'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Error 1
make[1]: *** [apps/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
make: *** [all] Error 2
&lt;== Failed to process package 'opencv2': 
  Command '/home/ilagi/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2

I googled to try to figure out what header file might be missing, but unfortunately didn't get anywhere.

I hope somebody will have an idea about at least the directions to go from here.

Thanks

2014-04-03 07:59:58 -0500 received badge  Famous Question (source)
2014-04-02 09:53:52 -0500 received badge  Notable Question (source)
2014-03-17 03:32:01 -0500 received badge  Notable Question (source)
2014-03-15 18:19:34 -0500 received badge  Necromancer (source)
2014-03-15 12:31:13 -0500 asked a question uvc_camera two webcams exit code -6

Hi, I'm trying to run two webcams with uvc_camera, but it throws exit code -6 and one always fails.

I know that there might be USB bandwidth issues, but I don't think that this would be the case here because: a. the error shows even if the lowest resolution and frame rate is used (320x240, frame rate: 5) b. the exit code is -6, while I believe USB bandwidth would throw exit rate 28

The odd thing that I can't find the log file what uvc_camera is referring to. Each camera works on its own. When trying to start both the first starts but the second doesn't.

Details are below.

  1. uvc_camera launch file:

<launch> <group ns="my_camera">
<node pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera" output="screen"> <ppparam name="width" type="int" value="320"/> <ppparam name="height" type="int" value="240"/> <ppparam name="fps" type="int" value="5"/> <ppparam name="device" type="string" value="/dev/video0"/> <ppparam name="camera_info_url" type="string" value="file://$(find uvc_camera)/example.yaml"/> </node> </group> <group ns="my_camera2">
<node pkg="uvc_camera" type="uvc_camera_node" name="uvc_camera" output="screen"> <ppparam name="width" type="int" value="320"/> <ppparam name="height" type="int" value="240"/> <ppparam name="fps" type="int" value="5"/> <ppparam name="device" type="string" value="/dev/video1"/> <ppparam name="camera_info_url" type="string" value="file://$(find uvc_camera)/example2.yaml"/>
</node> </group> </launch>

  1. The full output of uvc_camera

    $ roslaunch uvc_camera camera_nodes.launch
    ... logging to /home/ilagi/.ros/log/f447e66e-ac8c-11e3-aa71-1ef6d7be00ad/roslaunch-odroid-8934.log
    Checking log directory for disk usage. This may take awhile.
    Press Ctrl-C to interrupt
    Done checking log file disk usage. Usage is <1GB.
    
    started roslaunch server http://odroid:50048/
    
    SUMMARY
    ========
    
    PARAMETERS
     * /my_camera/uvc_camera/camera_info_url
     * /my_camera/uvc_camera/device
     * /my_camera/uvc_camera/fps
     * /my_camera/uvc_camera/height
     * /my_camera/uvc_camera/width
     * /my_camera2/uvc_camera/camera_info_url
     * /my_camera2/uvc_camera/device
     * /my_camera2/uvc_camera/fps
     * /my_camera2/uvc_camera/height
     * /my_camera2/uvc_camera/width
     * /rosdistro
     * /rosversion
    
    NODES
      /my_camera2/
        uvc_camera (uvc_camera/uvc_camera_node)
      /my_camera/
        uvc_camera (uvc_camera/uvc_camera_node)
    
    ROS_MASTER_URI=http://localhost:11311
    
    core service [/rosout] found
    process[my_camera/uvc_camera-1]: started with pid [8952]
    process[my_camera2/uvc_camera-2]: started with pid [8953]
    [ INFO] [1394921915.916987324]: camera calibration URL: file:///home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example.yaml
    [ WARN] [1394921915.923423605]: [camera] does not match name my_camera in file /home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example.yaml
    [ INFO] [1394921915.951653390]: camera calibration URL: file:///home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example2.yaml
    [ WARN] [1394921915.956654048]: [camera] does not match name my_camera2 in file /home/ilagi/ros_catkin_ws/install_isolated/share/uvc_camera/example2.yaml
    opening /dev/video0
    pixfmt 0 = 'MJPG' desc = 'MJPEG'
      discrete: 1280x720:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 640x480:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 640x360:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 544x288:   1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 432x240:   1/60 1/30 1/25 1/20 1/15 1/10 1/5 
      discrete: 352x288:   1/60 1/30 1/25 1/20 1/15 1 ...
(more)
2014-03-15 06:04:52 -0500 commented answer ROS remote master: can see topics but no data

I'm sorry, but I had the same issue and ROS_IP was set properly, it didn't make a difference. What made a difference is the /etc/hosts file on the remote PC having the hostname and ip of the master PC.

2014-03-15 06:03:28 -0500 commented answer ROS remote master: can see topics but no data

I had the same issue. All ROS_IP, ROS_MASTER_URI settings were fine, I did see the topics but when subscribed no message came through. It was because the node running roscore had a hostname and that hostname was not added to the /etc/host file or the remote PC. I have added the hostname and the topics immediately started to show their data on the remote PC.

2014-03-12 12:55:27 -0500 answered a question How to make the libuvc_ros package

Sorry, not in front on my computer, but I believe uvc_camera uses camera1394, where you can set brightness, see details at (look for brightness under parameters section): http://wiki.ros.org/camera1394

If you are not sure how to use parameters, the best to use a launch file. Example http://answers.ros.org/question/9786/...

2014-03-12 11:41:05 -0500 received badge  Commentator
2014-03-12 11:37:46 -0500 commented question Undefined reference when compiling camera_info_manager

Thanks, that helped - see my own answer below.

2014-03-12 11:34:59 -0500 answered a question Undefined reference when compiling camera_info_manager

Just managed to solve the issue after @jbinney asking me to add message() to the cmakelists file. As soon as I have added that the compile did run through fine. It looks the issue was that the first time when I tried to compile camera_info_manager then some of the prerequisites were missing, so I went and installed them including camera_calibration_parsers and came back to re-try

catkin_make_isolated --pkg camera_info_manager --install

but the error was still there like camera_calibration_parsers wouldn't be installed. As soon as I modified the cmakelists file the compile did find it. So the issue simply was that the dependencies are not listing camera_calibration_parsers, so when it gets added you need to trigger the recreation of the make file. Blah.

2014-03-12 10:35:05 -0500 commented question How to make the libuvc_ros package

You should download it from git https://github.com/ktossell/libuvc_ros.git into your src folder and then from the catkin folder run catkin_make_isolated --pkg libuvc_camer --install

2014-03-12 10:28:50 -0500 asked a question Undefined reference when compiling camera_info_manager

I'm compiling camera_info_manager on Ubuntu 13.10 (armhf) and receiving undefined reference to camera_calibration_parsers::readCalibration.

See details below:

$ catkin_make_isolated --pkg camera_info_manager --install
....
==> Processing catkin package: 'camera_info_manager'
==> Building with env: '/home/ilagi/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
==> make -j4 -l4 in '/home/ilagi/ros_catkin_ws/build_isolated/camera_info_manager'
[ 33%] Built target gtest
[ 66%] Built target camera_info_manager
Linking CXX executable /home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/camera_info_manager/unit_test
/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/libcamera_info_manager.so: undefined reference to `camera_calibration_parsers::readCalibration(std::string const&, std::string&, sensor_msgs::CameraInfo_<std::allocator<void> >&)'
/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/libcamera_info_manager.so: undefined reference to `camera_calibration_parsers::writeCalibration(std::string const&, std::string const&, sensor_msgs::CameraInfo_<std::allocator<void> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/ilagi/ros_catkin_ws/devel_isolated/camera_info_manager/lib/camera_info_manager/unit_test] Error 1
make[1]: *** [CMakeFiles/unit_test.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'camera_info_manager': 
  Command '/home/ilagi/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2

What is funny that I remember that I had the same issue when I was compiling for Raspberry Pi and resolved it somehow, but it seems I can't remember how.

Any idea is appreciated.

Edit: camera_calibration_parses package is installed, that was the first thing I checked Edit2: just realized that last time I raised a ticket in github against camera_info_manager, but then the issue got resolved on its own, so I just reopen the ticket. See make verbose output on the link: https://github.com/ros-perception/ima...

2014-03-11 04:48:22 -0500 received badge  Popular Question (source)
2014-03-03 05:51:26 -0500 commented answer Roslaunch cannot find launch file

Thanks, I have copied the launch file to ~/ros_catkin_ws/install_isolated/share/uvc_camera/ and now it works. Thanks!

2014-03-02 11:48:20 -0500 received badge  Popular Question (source)
2014-03-02 11:41:15 -0500 received badge  Scholar (source)
2014-03-02 11:41:12 -0500 commented answer Roslaunch cannot find launch file

Thanks, I filed the bug. Do you know where can I manually place the .launch files for to find it until the CMakeLists.txt's bug doesn't get resolved?

2014-03-02 04:13:48 -0500 asked a question Roslaunch cannot find launch file

I have installed uvc_camera package by running:

~/ros_catkin_ws/src $ git clone git://github.com/ktossell/camera_umd.git 
~/ros_catkin_ws $ catkin_make_isolated --pkg camera_umd --install

Everything went fine, no errors. But when I'm trying to launch a launch file from this package it says it cannot find it:

~/ros_catkin_ws $ ls /dev/video*
/dev/video0  /dev/video1
~/ros_catkin_ws $ roslaunch uvc_camera stereo_node.launch
[stereo_node.launch] is neither a launch file in package [uvc_camera] nor is [uvc_camera] a launch file name

The stereo_node.launch is still in the src folder:

~/ros_catkin_ws $ sudo find / -name stereo_node.launch
~/ros_catkin_ws/src/camera_umd/uvc_camera/launch/stereo_node.launch

Is it normal that after installation the .launch file is still in the /src folder? If no, then would this be an installation issue? If yes, then why roslaunch cannot find it?