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

o3p7s5's profile - activity

2014-11-21 08:58:12 -0500 received badge  Famous Question (source)
2014-04-02 16:16:21 -0500 received badge  Notable Question (source)
2014-02-18 19:21:18 -0500 received badge  Famous Question (source)
2014-01-08 05:49:39 -0500 received badge  Necromancer (source)
2013-12-19 05:12:43 -0500 answered a question Openni registration problem

This is a bug in Libopenni-dev. It does not work proper with 32 bit OS. You may work with an older version or install a 64 bit OS. Regards ,O3

2013-12-19 05:07:45 -0500 commented answer Problem including rosbag.h

Thank you for this answer, Im gonna try it out soon.

2013-12-19 05:06:56 -0500 received badge  Notable Question (source)
2013-12-15 21:00:09 -0500 received badge  Popular Question (source)
2013-12-15 03:18:16 -0500 answered a question Object recognition kitchen capture orb_template

Are you using a 32 bit Ubuntu? Then it is a known Bug. Just install 64 bit Ubuntu and move on! See https://github.com/wg-perception/capture/issues/15#issuecomment-30496760

Greets, O3

2013-12-11 03:02:53 -0500 commented question Problem including rosbag.h

Ooopst... wrong one. Edited again. :)

2013-12-11 00:45:26 -0500 commented question Problem including rosbag.h

Updated my question with hole CMakeLists.

2013-12-10 15:25:12 -0500 received badge  Editor (source)
2013-12-10 15:24:34 -0500 asked a question Problem including rosbag.h

Hi there, trying to work with Rosbag CookBook I get following error when I try to catkin_make:

~/ws/src/main.cpp:98: error: undefined reference to 'rosbag::Bag::Bag()'
~/ws/src/main.cpp:149: error: undefined reference to 'rosbag::Bag::~Bag()'
~/ws/src/main.cpp:149: error: undefined reference to 'rosbag::Bag::~Bag()'
collect2: ld returned 1 exit status
make[2]: *** [/home/...] Error 1
make[1]: *** [...] Error 2
make: *** [all] Error 2
Invoking "make" failed

C++ code:

#include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
#include <boost/foreach.hpp>
#include <message_filters/subscriber.h>
#include <message_filters/time_synchronizer.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/CameraInfo.h>
using namespace rosbag;
rosbag::Bag bag;
//    bag.open("test.bag", rosbag::bagmode::Write);
//    bag.close();

CMakeLists:

FIND_PACKAGE(OpenGL)
find_package(PkgConfig REQUIRED)
find_package(ASSIMP QUIET)
find_package(rosbag REQUIRED)
if (NOT ASSIMP_FOUND)
  pkg_check_modules(ASSIMP assimp)
endif()
if (NOT ASSIMP_FOUND)
  message(WARNING "ASsimp not found, not building synthetic views")
endif()
if( ${ASSIMP_VERSION} STRGREATER "2.0.0" )
  message(STATUS "Found assimp v3")
  set(EXTRA_SOURCES)
  set(EXTRA_LIBRARIES assimp)
else()
  message(STATUS "Building assimp v3")
  set(ASSIMP_INCLUDE_DIRS ./assimp/include)
  aux_source_directory(./assimp/contrib/clipper EXTRA_SOURCES_clipper)
  aux_source_directory(./assimp/contrib/ConvertUTF EXTRA_SOURCES_ConvertUTF)
  aux_source_directory(./assimp/contrib/irrXML EXTRA_SOURCES_irrXML)
  aux_source_directory(./assimp/contrib/poly2tri/poly2tri/common EXTRA_SOURCES_poly2tri)
  aux_source_directory(./assimp/contrib/poly2tri/poly2tri/sweep EXTRA_SOURCES_poly2tri_sweep)
  aux_source_directory(./assimp/contrib/unzip EXTRA_SOURCES_unzip)
  aux_source_directory(./assimp/contrib/zlib EXTRA_SOURCES_zlib)
  aux_source_directory(./assimp/code EXTRA_SOURCES)
  set(EXTRA_SOURCES ${EXTRA_SOURCES} ${EXTRA_SOURCES_clipper} ${EXTRA_SOURCES_ConvertUTF} ${EXTRA_SOURCES_irrXML} ${EXTRA_SOURCES_poly2tri} ${EXTRA_SOURCES_poly2tri_sweep} ${EXTRA_SOURCES_unzip} ${EXTRA_SOURCES_zlib})
  set(EXTRA_LIBRARIES)
endif()

# create the 2d rendering library

add_library(${PROJECT_NAME}_2d renderer2d.cpp)
target_link_libraries(${PROJECT_NAME}_2d ${OpenCV_LIBRARIES})
install(TARGETS ${PROJECT_NAME}_2d
      DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)

# create the 3d rendering library
set(SOURCES model.cpp renderer3d.cpp utils.cpp)
include_directories(BEFORE ${ASSIMP_INCLUDE_DIRS})
include_directories(BEFORE ${rosbag_INCLUDE_DIRS})

find_package(OpenCV REQUIRED)
find_package(rosbag REQUIRED)

INCLUDE_DIRECTORIES(SYSTEM ${OpenCV_INCLUDE_DIR}
                       ${OPENGL_INCLUDE_DIR}
                       ${rosbag_INCLUDE_DIR}
)

if (${USE_GLUT})
  add_definitions(-DUSE_RENDERER_GLUT=1)

  find_package(GLUT)
  include_directories(SYSTEM ${GLUT_INCLUDE_DIR})

  # add a glut version of the renderer
  add_library(${PROJECT_NAME}_glut ${SOURCES}
                               renderer_glut.cpp
                               ${EXTRA_SOURCES}
  )
  target_link_libraries(${PROJECT_NAME}_glut ${EXTRA_LIBRARIES}
                                         ${OpenCV_LIBRARIES}
                                         ${OPENGL_LIBRARIES}
                                         ${GLUT_LIBRARIES}
                                         freeimage
  )
  install(TARGETS ${PROJECT_NAME}_glut
      DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  )
else()
  # add an OSMesa version of the renderer
  add_library(${PROJECT_NAME}_osmesa ${SOURCES}
                                 renderer_osmesa.cpp
                                 ${EXTRA_SOURCES}
  )

  target_link_libraries(${PROJECT_NAME}_osmesa ${EXTRA_LIBRARIES}
                                           ${OpenCV_LIBRARIES}
                                           OSMesa GLU
                                           freeimage
  )
  install(TARGETS ${PROJECT_NAME}_osmesa
      DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
  )
endif()

# add an executable to render views to a file
ADD_EXECUTABLE(view_generator main.cpp)

SET_PROPERTY(TARGET view_generator PROPERTY DEBUG_POSTFIX ${ASSIMP_DEBUG_POSTFIX})
find_package(rosbag REQUIRED)

TARGET_LINK_LIBRARIES(view_generator ${EXTRA_LIBRARIES})

if (${USE_GLUT})
  target_link_libraries(view_generator ${PROJECT_NAME}_glut)
else()
  target_link_libraries(view_generator ${PROJECT_NAME}_osmesa)
endif()
target_link_libraries(view_generator ${PROJECT_NAME}_2d)

SET_TARGET_PROPERTIES(view_generator PROPERTIES
                                 OUTPUT_NAME view_generator
)

install(TARGETS view_generator
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

# add some executables
add_subdirectory(apps)

Already put the following in package.xml:

<build_depend>rosbag</build_depend>
<run_depend>rosbag</run_depend>

Distro: Groovy (Installed via pre built packages.) Ubuntu: 12.04 LTS

me@mypc:~/ws$ env | grep ros

ROS_ROOT=/opt/ros/groovy/share/ros
ROS_PACKAGE_PATH=/opt/ros/groovy/share:/opt/ros/groovy/stacks
LD_LIBRARY_PATH=/opt/ros/groovy/lib
CPATH=/opt/ros/groovy/include
PATH=/opt/ros/groovy/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PYTHONPATH=/opt/ros/groovy/lib/python2.7/dist-packages
PKG_CONFIG_PATH=/opt ...
(more)
2013-12-10 15:21:06 -0500 asked a question testtestest

test test test

2013-12-03 16:23:50 -0500 received badge  Teacher (source)
2013-12-02 04:40:02 -0500 received badge  Popular Question (source)
2013-12-01 12:10:25 -0500 commented answer Installing Object_Recognition_Core on ubuntu python link errors

Dear Chase, thank you for your reply. I also run ubuntu 12.04 on a 64 bit System. I already tried groovy and hydro. The thing is that I want to modify the source codes of ORK in order of getting better results in linemod. I had it building the code about a month ago till last week. Since one week it is not possible to buile (catkin_make) ORK. Doesn't matter if groovy or hydro. I even made a clean install and followed exactly the instructures on http://wg-perception.github.io/object_recognition_core/install.html#install I realy need to get over this problems, and I dont have a clue why these happen.. May be I should check out an older base line from git... Best Regards, o3p7s5

2013-12-01 11:56:18 -0500 answered a question Mask is blank in Object Recognition Kitchen (ORK)

Dear Chase, I believe you are trying to use the "textured plane" mode, right? rosrun object_recognition_capture orb_template -o my_textured_plane

Well I didn't use it that way. I just printed out the capture_board and ommited the -i option in rosrun object_recognition_capture capture -i my_textured_plane --seg_z_min 0.01 -o silk.bag --preview --> rosrun object_recognition_capture capture --seg_z_min 0.01 -o silk.bag --preview

that work well for me-> the frame is black EXCEPT the object... As I mentioned on ROS Answers I installed ORK from source code.

Regards, o3p7s5

2013-12-01 11:46:40 -0500 answered a question Installing Object_Recognition_Core on ubuntu python link errors

Dear Chase, thank you for your reply. I also run ubuntu 12.04 on a 64 bit System. I already tried groovy and hydro. The thing is that I want to modify the source codes of ORK in order of getting better results in linemod. I had it building the code about a month ago till last week. Since one week it is not possible to buile (catkin_make) ORK. Doesn't matter if groovy or hydro. I even made a clean install and followed exactly the instructures on

<a href="http://wg-perception.github.io/object_recognition_core/install.html#install">http://wg-perception.github.io/object_recognition_core/install.html#install</a>

and now Ive got problems like:

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package geometric_shapes.

  Set geometric_shapes_DIR to the directory containing a CMake configuration
  file for geometric_shapes.  The file will have one of the following names:

    geometric_shapesConfig.cmake
    geometric_shapes-config.cmake

Call Stack (most recent call first):
  object_recognition_ros/CMakeLists.txt:4 (find_package)


-- Eigen found (include: /usr/include/eigen3)
-- +++ processing catkin package: 'object_recognition_tabletop'
-- ==> add_subdirectory(tabletop)
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package household_objects_database.

  Set household_objects_database_DIR to the directory containing a CMake
  configuration file for household_objects_database.  The file will have one
  of the following names:

    household_objects_databaseConfig.cmake
    household_objects_database-config.cmake

Call Stack (most recent call first):
  tabletop/CMakeLists.txt:4 (find_package)


CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package moveit_core.

  Set moveit_core_DIR to the directory containing a CMake configuration file
  for moveit_core.  The file will have one of the following names:

    moveit_coreConfig.cmake
    moveit_core-config.cmake

Call Stack (most recent call first):
  tabletop/CMakeLists.txt:4 (find_package)


CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package sql_database.

  Set sql_database_DIR to the directory containing a CMake configuration file
  for sql_database.  The file will have one of the following names:

    sql_databaseConfig.cmake
    sql_database-config.cmake

I realy need to get over this problems, and I dont have a clue why these happen.. May be I should check out an older base line from git...

Best Regards, o3p7s5

2013-11-28 10:03:45 -0500 asked a question Installing Object_Recognition_Core on ubuntu python link errors

Hi,

I am trying to install object_recognition_core by following the instructions on this website wg-perception.github.io/object_recognition_core/install.html#install

Upon running catkin_make it gets to 100% then fails with the following link errors:

    /home/aly/workspace/ork/devel/lib/libobject_recognition_core_common.so: error: undefined reference to 'PyObject_Size'
/home/aly/workspace/ork/devel/lib/libobject_recognition_core_common.so: error: undefined reference to 'PyErr_Occurred'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_python.so: error: undefined reference to 'PyList_Insert'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_python.so: error: undefined reference to 'PyExc_ImportError'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_python.so: error: undefined reference to 'PyString_InternFromString'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_python.so: error: undefined reference to 'PyProperty_Type'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libboost_python.so: error: undefined reference to 'PyString_AsString'

and many more similar errors followed by:

collect2: ld returned 1 exit status
make[2]: *** [ork/devel/lib/object_recognition_ros/object_information_server] Error 1
make[1]: *** [object_recognition_ros/src/info_service/CMakeFiles/object_information_server.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Any idea why these are failing, my python version is 2.7.3

Thanks

2013-11-28 09:57:44 -0500 commented question Installing Object_Recognition_Core on ubuntu python link errors

UPDATE I still have this exact issue, any suggestions would be very welcome

2013-11-22 07:34:45 -0500 commented question Installing Object_Recognition_Core on ubuntu python link errors

Push PUSH!!!

2013-11-22 07:34:23 -0500 received badge  Supporter (source)