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

jossy's profile - activity

2021-01-01 14:24:33 -0500 received badge  Famous Question (source)
2018-01-11 20:37:22 -0500 marked best answer How to build a library on ROS?

I installed lsd_slam and ros-indigo. To use lsd_slam library, I downloaded source code and run rosmake lsd_slam.

I try to modify content of this library files. I add below line to 248th line in main_on_images.cpp under lsd_slam/lsd_slam_core/src. Then I run rosmake lsd_slam to build.

    printf("getCurrentPoseEstimate\n");

I run lsd_slam with dataset using below command :

rosrun lsd_slam_core dataset_slam _files:=<files> _hz:=<hz> _calib:=<calibration_file>

I don't see getCurrentPoseEstimate message. How can I build a library after modifying source code on ROS?

2018-01-11 20:36:40 -0500 marked best answer How to use dataset_slam?

,ı use ros-indigo and ubuntu 14.04. I try to run lsd_slam with an image folder. These images was taken from my tablet. This image folder is on my desktop.

I opened a terminal and run below command :

roscore

I opened a new terminal and run it :

rosrun lsd_slam_core dataset_slam _files:=...../Desktop/grayImages _hz:=0 _calib:=pinhole_example_calib.cfg

This command's output is :

/lsd_slam/lsd_slam_core/calib/pinhole_example_calib.cfg ... found!
found ATAN camera model, building rectifier.
Input resolution: 1280 720
In: 0.825000 1.100000 0.500000 0.500000 0.000000
Out: Crop
Output resolution: 640 480
Prepped Warp matrices
Started optimization thread 
Started mapping thread!
Started  constraint search thread!
found 457 image files in folder ......../Desktop/grayImages!
Doing Random initialization!
started image display thread!
Done Random initialization!
init done 
opengl support available

But I don't see any window, map etc.

Content of pinhole_calib.cfg :

0.825 1.1 0.5 0.5 0 
1280 720
crop 
640 480

What is the problem? How can I run lsd_slam using image dataset?

2018-01-11 20:34:44 -0500 marked best answer How to change workspace and build environment?

I use ros-indigo and ubuntu 14.04. I install ros and create catkin. But now, I want to use rosbuild not catkin build. How can I do it? Should I add new package to ROS? Should I reinstall ROS?

2017-06-08 05:01:17 -0500 received badge  Famous Question (source)
2017-03-07 14:58:00 -0500 received badge  Nice Question (source)
2016-10-27 04:53:51 -0500 received badge  Notable Question (source)
2016-10-05 11:32:29 -0500 received badge  Famous Question (source)
2016-09-03 03:37:37 -0500 received badge  Famous Question (source)
2016-08-09 12:40:55 -0500 received badge  Famous Question (source)
2016-08-08 00:12:45 -0500 received badge  Popular Question (source)
2016-07-19 03:11:45 -0500 received badge  Famous Question (source)
2016-03-23 04:20:15 -0500 received badge  Famous Question (source)
2016-03-23 04:20:15 -0500 received badge  Notable Question (source)
2016-03-02 09:30:08 -0500 received badge  Famous Question (source)
2016-01-13 02:04:16 -0500 asked a question How to use lsd_slam with my own bag file?

I try to use lsd_slam with my data. lsd_slam works with sample datas (bag files taken from lsd_slam web page) perfectly.

I want to use it with my data. So, I create a .bag file for monocular camera using this code.

When I run lsd_slam, I cannot see any cloud data on viewer window or any image on depth window.

How can I use my bag file with lsd_slam? I use ubuntu 14.04 and ros indigo.

2016-01-13 01:56:29 -0500 commented question How to use camera calibration with ubuntu 14.04?

I reinstall opencv includes c++, python. It works now.

2016-01-13 01:56:05 -0500 commented answer How to use camera calibration with ubuntu 14.04?

I reinstall opencv c++, pyhton. And it works.

2016-01-11 22:16:36 -0500 received badge  Notable Question (source)
2016-01-11 20:13:19 -0500 received badge  Popular Question (source)
2016-01-11 08:40:31 -0500 commented answer How to use lsd_slam my own data?

yes. But tracking lost after some steps. I should taken content of calibration file from ptam calibration. I work on this task.

2016-01-11 06:26:13 -0500 received badge  Notable Question (source)
2016-01-11 06:26:13 -0500 received badge  Famous Question (source)
2016-01-11 03:34:22 -0500 asked a question How to use camera calibration with ubuntu 14.04?

I use ubuntu 14.04 and ROS Indigo. I try to run lsd_slam using image list. It requires a calibration file. So, I try to create a calibration file using rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.108 image:=/my_camera/image camera:=/my_camera command in ubuntu terminal.

It throws an error :

File "/opt/ros/indigo/lib/camera_calibration/cameracalibrator.py", line 47, in <module>
    import cv2
ImportError: libopencv_nonfree.so.2.4: cannot open shared object file: No such file or directory

How can I solve it?

2016-01-09 03:02:07 -0500 commented answer Creating a bag file out of a image sequence

Sorry, I am wrong. This code runs with rgb images. It works now!

2016-01-09 02:34:07 -0500 commented answer Creating a bag file out of a image sequence

I use this code with gray images via "python test.py imagesFolder test.bag" on ubuntu terminal.

 line 106, in CreateMonoBag
    Img_data = [pix for pixdata in im.getdata() for pix in pixdata]
TypeError: 'int' object is not iterable
2016-01-06 03:45:09 -0500 received badge  Notable Question (source)
2015-12-16 22:34:35 -0500 received badge  Notable Question (source)
2015-12-16 22:34:35 -0500 received badge  Famous Question (source)
2015-11-16 04:02:58 -0500 received badge  Famous Question (source)
2015-11-02 01:55:07 -0500 received badge  Popular Question (source)
2015-11-02 01:48:43 -0500 marked best answer Can't creake a package on fuerte

I want to run this example. To do, I should create a package. But I can't create the package on ros-fuerte.

There are two ways package build type named catkin and rosbuild. Which one I should?

I tried both of them. My fuerte workspace is under home folder. Using catkin;

fuerte_workspace$ catkin_create_pkg using_markers roscpp visualization_msgs
Created file using_markers/CMakeLists.txt
Created file using_markers/package.xml
Created folder using_markers/include/using_markers
Created folder using_markers/src
Successfully created files in /home/user/fuerte_workspace/using_markers. Please adjust the values in package.xml.

Next step is :

You should be able to build the code with:
 $ cd %TOP_DIR_YOUR_CATKIN_WORKSPACE%
 $ catkin_make

I don't have any catkin workspace(or I can't find it). So, I tried to create a workspace using this [guide].(http://wiki.ros.org/catkin/Tutorials/create_a_workspace). But catkin_init_workspace doesn't work. Error message is fuerte_workspace$ catkin_init_workspace command not found .

How can I create a package on fuerte?

EDIT

I tried rosbuild+fuerte. The guide says that

Before getting started, let's create a scratch package to called using_markers, somewhere in your package path:
roscreate-pkg using_markers roscpp visualization_msgs

I tried roscreate-pkg using_markers roscpp visualization_msgs command, and I got an error. Error mesaage is below :

fuerte_workspace$ roscreate-pkg using_markers roscpp visualization_msgs
Traceback (most recent call last):
File "/opt/ros/fuerte/bin/roscreate-pkg", line 34, in <module>
import roscreate
 File "/opt/ros/fuerte/lib/python2.7/dist-packages/roscreate/__init__.py", line 36, in <module>
import roscreate.core
File "/opt/ros/fuerte/lib/python2.7/dist-packages/roscreate/core.py", line 40, in <module>
import pkg_resources
ImportError: No module named pkg_resources
2015-11-02 01:47:33 -0500 received badge  Famous Question (source)
2015-11-02 01:45:34 -0500 marked best answer Rosdep cannot find all required resources

I use ubuntu 12.04 and fuerte. I install lsd_slam and its readme says that

Using `live_slam`
If you want to directly use a camera.
rosrun lsd_slam_core live_slam /image:=<yourstreamtopic> /camera_info:=<yourcamera_infotopic>
When using ROS camera_info, only the image dimensions and the `K` matrix from the camera info messages will be used - hence the video has to be rectified.

I want to use live_slam on ROS. To install camera driver, I find this blog.

Firstly, I run 1.b section not 1.a. Then I tried rosdep install gscam, I get below error message.

ERROR: Rosdep cannot find all required resources to answer your query Missing resource gscam ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/opt/ros/fuerte/share ROS path [2]=/opt/ros/fuerte/stacks ROS path [3]=/home/user/fuerte_workspace/sandbox/

Conetnt of bashrc file is below :

source /opt/ros/fuerte/setup.bash export ROS_WORKSPACE=~/fuerte_workspace/ export ROS_PACKAGE_PATH+=:~/fuerte_workspace/sandbox/ export ROS_PACKAGE_PATH+=:~/fuerte_workspace/gscam/

How can I handle this error? Or, how can I get frame from webcam using ubuntu, ROS, fuerte?

2015-11-02 01:44:57 -0500 marked best answer How can I use webcam on fuerte?

I use ubuntu 12.04 and fuerte. I want to get frame from webcam. I try to install camera driver. I plan to use ucv_cam driver but its documentation says that

This package is no longer actively maintained.

So I want to try libucv_camera . libuvc_camera documentation has 3 ros version(groovy, hydro, indigo), not fuerte. How can I use camera on fuerte?

2015-11-02 01:44:07 -0500 received badge  Notable Question (source)
2015-11-02 01:44:07 -0500 received badge  Famous Question (source)
2015-11-02 01:44:02 -0500 received badge  Notable Question (source)
2015-11-02 01:27:04 -0500 marked best answer lsd_slam quick start problem

I use ubuntu 12.04 and fuerte. I install lsd_slam from here. I try tu run quickstart section. I install LSD_room.bag file. My file path is below :

 > home
    > fuerte_workspace
                   > lsd_slam
                        > lsd_slam_core
                        > lsd_slam_viewer
                   > sandbox

rosrun lsd_slam_core live_slam image:=/image_raw camera_info:=/camera_info

upper command require two input argument. But I don't know what I write them. How can I run this example?

2015-10-31 13:27:52 -0500 received badge  Notable Question (source)
2015-10-28 11:45:21 -0500 received badge  Famous Question (source)
2015-09-23 19:54:44 -0500 received badge  Popular Question (source)
2015-09-23 19:54:44 -0500 received badge  Notable Question (source)
2015-09-10 20:08:30 -0500 received badge  Notable Question (source)
2015-09-10 20:08:30 -0500 received badge  Popular Question (source)
2015-09-08 01:10:31 -0500 received badge  Notable Question (source)
2015-09-08 01:05:22 -0500 received badge  Popular Question (source)
2015-09-08 01:04:06 -0500 received badge  Popular Question (source)