Ask Your Question

Matthew.J's profile - activity

2016-06-21 18:11:45 -0500 received badge  Famous Question (source)
2016-06-01 16:53:18 -0500 received badge  Student (source)
2015-05-22 13:28:35 -0500 received badge  Famous Question (source)
2015-05-10 14:15:01 -0500 received badge  Famous Question (source)
2015-05-10 14:15:01 -0500 received badge  Notable Question (source)
2015-04-12 04:24:30 -0500 received badge  Notable Question (source)
2015-04-09 11:56:15 -0500 received badge  Popular Question (source)
2015-03-27 08:29:24 -0500 asked a question Why does roboearth database search triger exception?

I'm trying to use the RoboEarth API through their website http://api.roboearth.org but it seems to be down for more than 2 weeks now.
This problem already appeared in the past. ( http://answers.ros.org/question/14700... ) But seems like nobody knew what's the problem or who to contact so I'm asking again.

DBException at /objects/result

'Hbase connection failed: Could not connect to pcube:9090'

Request Method:     GET
Request URL:    http://api.roboearth.org/objects/result?csrfmiddlewaretoken=144d3ff07953f78d9e7c00bd3912e748&query=cup&format=html
2015-03-16 12:58:06 -0500 received badge  Notable Question (source)
2015-02-02 03:56:15 -0500 received badge  Notable Question (source)
2015-01-31 11:03:37 -0500 answered a question segfault from PCL SHOTEstimationOMP

Turns out it was neither PCL nor ROS problem. There was something broken in my OS.

2015-01-29 19:42:56 -0500 received badge  Popular Question (source)
2015-01-29 10:35:11 -0500 commented question segfault from PCL SHOTEstimationOMP

My includes were fine... I asked on the forum you suggested. Thx for advice.

2015-01-29 06:18:55 -0500 received badge  Popular Question (source)
2015-01-29 05:56:20 -0500 commented answer Can I debug node in gdb without new xterm?

Yes that was it. THX

2015-01-29 04:36:25 -0500 commented question segfault from PCL SHOTEstimationOMP

Added gdb backtrace. I haven't specified standard.

2015-01-29 04:24:17 -0500 received badge  Editor (source)
2015-01-29 04:08:22 -0500 commented answer Can I debug node in gdb without new xterm?

Great but there is still one problem. When I run it with gdb --args I can't see what I'm writing in terminal. It's hidden like a password.

2015-01-29 02:18:27 -0500 asked a question segfault from PCL SHOTEstimationOMP

I have a seg fault problem. I tried to run it with valgrind but I can't figure what caused the problem from the results. I also tried gdb but the results aren't much better. I don't see where the problem came from.

Some context for seg fault

global:

pcl::PointCloud<PointType>::Ptr modelPtr (new pcl::PointCloud<PointType> ());
pcl::PointCloud<PointType>::Ptr model_keypoints (new pcl::PointCloud<PointType> ());

in main:

  if (pcl::io::loadPCDFile (model_filename_, *modelPtr) < 0)
  {
    std::cout << "pcl::io::loadPCDFile error" << std::endl;
    return (-1);
  }

in callback function:

  pcl::NormalEstimationOMP<PointType, NormalType> norm_est;
  norm_est.setKSearch (10);
  norm_est.setInputCloud (modelPtr);
  norm_est.compute (*model_normals);

  pcl::copyPointCloud (*modelPtr, sampled_indices.points, *model_keypoints);

  pcl::SHOTEstimationOMP<PointType, NormalType, DescriptorType> descr_est;
  descr_est.setRadiusSearch (descr_rad_);
  descr_est.setInputCloud (model_keypoints); 
  descr_est.setInputNormals (model_normals); 
  descr_est.setSearchSurface (modelPtr);
  descr_est.compute (*model_descriptors); //segfault

Any ideas what could be the cause of this problem?

Edit: gdb backtrace results are here.

Edit2: I also get this warning from building this node

In file included from /usr/include/c++/4.6/backward/strstream:52:0,
                 from /usr/include/vtk-5.8/vtkIOStream.h:112,
                 from /usr/include/vtk-5.8/vtkSystemIncludes.h:40,
                 from /usr/include/vtk-5.8/vtkIndent.h:24,
                 from /usr/include/vtk-5.8/vtkObjectBase.h:43,
                 from /usr/include/vtk-5.8/vtkSmartPointerBase.h:26,
                 from /usr/include/vtk-5.8/vtkSmartPointer.h:23,
                 from /usr/include/pcl-1.7/pcl/visualization/point_cloud_geometry_handlers.h:48,
                 from /usr/include/pcl-1.7/pcl/visualization/point_cloud_handlers.h:41,
                 from /usr/include/pcl-1.7/pcl/visualization/common/actor_map.h:40,
                 from /usr/include/pcl-1.7/pcl/visualization/pcl_visualizer.h:47,
                 from /home/ros-user/catkin_ws/src/kinect_pr2/src/subscriber.cpp:15:
/usr/include/c++/4.6/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]

But line 15 is #include <pcl/visualization/pcl_visualizer.h> so it will be probably unrelated.

2015-01-29 02:17:03 -0500 commented question Can I debug node in gdb without new xterm?

Nope :-( it automatically runs the node. I want to set breakpoint and som awatches first. And when I remove the run command gdb doesn't launch correctly.

2015-01-28 18:02:41 -0500 asked a question Can I debug node in gdb without new xterm?

In this tutorial is shown how to launch nodes in gdb (and other tools). There are two options for gdb.

  • launch-prefix="xterm -e gdb --args" : run your node in a gdb in a separate xterm window, manually type run to start it
  • launch-prefix="gdb -ex run --args" : run your node in gdb in the same xterm as your launch without having to type run to start it

Is it possible to run my node in gdb in the same xterm as my launch with having to manually type run to start it? My attempts to do that were unsuccessful.

2015-01-28 16:30:02 -0500 received badge  Enthusiast
2015-01-24 09:15:27 -0500 asked a question convertion to pcl::pointcloud<>::ptr

I have const sensor_msgs::PointCloud2ConstPtr& cloud from kinect. I can convert it to pcl PointCloud with

  pcl::PointCloud<PointType> scene;  
  pcl::fromROSMsg(*cloud, scene);

But I need to get normals estimated and to setInputCloud() method is needed pcl::PointCloud<PointType>::Ptr

pcl::PointCloud<PointType>::Ptr scenePtr (new pcl::PointCloud<PointType> ()); //this one is global
pcl::NormalEstimationOMP<PointType, NormalType> norm_est;
norm_est.setKSearch (10);
norm_est.setInputCloud (scenePtr);
norm_est.compute (*scene_normals);

How can I get pcl::PointCloud<PointType>::Ptr from pcl::PointCloud<PointType> or const sensor_msgs::PointCloud2ConstPtr& cloud?

2015-01-19 12:32:21 -0500 received badge  Popular Question (source)
2015-01-18 16:11:39 -0500 commented answer catkin doesn't create test executable

Yes it was. After renaming it I got compiler error because CMakefile wasn't correctly set up for header files.

2015-01-18 15:42:01 -0500 commented answer catkin doesn't create test executable

I created package under new name and it helped. I was already going nutz from this. THX

2015-01-18 15:42:01 -0500 edited question catkin doesn't create test executable

I'm trying to create subscriber for PR2 kinect, but I'm stuck with the most basic thing. I expected to compile this test package and begin with functionality implementation. But catkin_make doesn't build any executable for this package. my package structure:

./package.xml
./CMakeLists.txt
./src
./src/test.cpp
./include
./include/test
./include/test/test.hpp

CMakeLists:

cmake_minimum_required(VERSION 2.8.3)
project(test)

find_package(catkin REQUIRED COMPONENTS
  pcl_ros
  roscpp
  sensor_msgs
  std_msgs
)

catkin_package(
  INCLUDE_DIRS include
)
include_directories(
  ${catkin_INCLUDE_DIRS}
)
add_executable(test src/test.cpp)

test.cpp:

#include <test/test.hpp>

void processPoint::processCloud( const sensor_msgs::PointCloud2ConstPtr& cloud )
{

}

int main(int argc, char **argv) 
{
  init(argc, argv, "test");

  //ros::NodeHandle n;

  processPoint processPoint;

  ros::spin();

  return 0;
}

test.hpp:

#include <ros/ros.h>
#include <pcl_ros/point_cloud.h>
#include <sensor_msgs/PointCloud2.h>

using namespace ros;
using namespace sensor_msgs;

class processPoint {
    NodeHandle nh;
    Subscriber sub;

public:
    processPoint() {
        sub = nh.subscribe<sensor_msgs::PointCloud2>("/head_mount_kinect/depth/points", 1, &processPoint::processCloud, this);
    }

    ~processPoint() {   
     }

    void processCloud( const sensor_msgs::PointCloud2ConstPtr& cloud );
};

And finally catkin_make result:

Base path: /home/ros-user/catkin_ws
Source space: /home/ros-user/catkin_ws/src
Build space: /home/ros-user/catkin_ws/build
Devel space: /home/ros-user/catkin_ws/devel
Install space: /home/ros-user/catkin_ws/install
####
#### Running command: "cmake /home/ros-user/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/ros-user/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ros-user/catkin_ws/install" in "/home/ros-user/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ros-user/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/ros-user/catkin_ws/devel;/opt/ros/hydro
-- This workspace overlays: /home/ros-user/catkin_ws/devel;/opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ros-user/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.89
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - test
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'test'
-- ==> add_subdirectory(test)
-- Using these message generators: gencpp;genlisp;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ros-user/catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/ros-user/catkin_ws/build"
####

I think that after Running command: "make -j4 -l4" should follow compilation of executable test defined by add_executable(test src/test.cpp) but nothing happens. I had no problems with compiling tutorials so I have no idea why this package doesn't work.