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

sykatch's profile - activity

2023-02-08 16:22:49 -0500 received badge  Famous Question (source)
2021-01-10 18:16:35 -0500 received badge  Good Question (source)
2020-12-28 06:45:00 -0500 received badge  Nice Question (source)
2020-09-24 12:00:13 -0500 received badge  Notable Question (source)
2020-09-24 12:00:13 -0500 received badge  Popular Question (source)
2020-09-24 12:00:13 -0500 received badge  Famous Question (source)
2019-09-03 07:37:39 -0500 marked best answer Invoking "make -j8 -l8" failed

Hi I get this error while building Object Recognition Kitchen and have no idea what to do:

[ 24%] Building CXX object object_recognition_core/src/io/CMakeFiles/voter_ectomodule.dir/module_voter.cpp.o
Linking CXX executable /home/tomas/ork/devel/lib/object_recognition_renderer/trainer_planar
[ 24%] Built target trainer_planar
[ 24%] Building CXX object object_recognition_core/src/db/CMakeFiles/db_ectomodule.dir/ModelWriter.cpp.o
[ 24%] Building CXX object object_recognition_core/src/db/CMakeFiles/db_ectomodule.dir/ObservationReader.cpp.o
[ 25%] Building CXX object object_recognition_core/src/db/CMakeFiles/db_ectomodule.dir/ObservationWriter.cpp.o
Linking CXX shared library /home/tomas/ork/devel/lib/libobject_recognition_core_common.so
[ 25%] Built target object_recognition_core_common
Linking CXX shared library /home/tomas/ork/devel/lib/python2.7/dist-packages/object_recognition_core/boost/common.so
[ 25%] Built target common_interface
Linking CXX shared library /home/tomas/ork/devel/lib/python2.7/dist-packages/object_recognition_core/ecto_cells/voter.so
[ 25%] Built target voter_ectomodule
Linking CXX shared library /home/tomas/ork/devel/lib/python2.7/dist-packages/object_recognition_core/ecto_cells/db.so
[ 25%] Built target db_ectomodule
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

This is for catkin_make -j1

Base path: /home/tomas/ork
Source space: /home/tomas/ork/src
Build space: /home/tomas/ork/build
Devel space: /home/tomas/ork/devel
Install space: /home/tomas/ork/install
####
#### Running command: "make cmake_check_build_system" in "/home/tomas/ork/build"
####
####
#### Running command: "make -j1" in "/home/tomas/ork/build"
####
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_RecognizedObject
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionGoal
[  0%] Built target actionlib_msgs_generate_messages_py
[  0%] Built target geometry_msgs_generate_messages_py
[  0%] Built target shape_msgs_generate_messages_py
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_TableArray
[  0%] Built target sensor_msgs_generate_messages_py
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionActionResult
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionActionFeedback
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_RecognizedObjectArray
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectInformation
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionFeedback
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_GetObjectInformation
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_Table
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionResult
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectType
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionAction
[  0%] Built target _object_recognition_msgs_generate_messages_check_deps_ObjectRecognitionActionGoal
[  5%] Built target object_recognition_msgs_generate_messages_py
[  5%] Built target actionlib_msgs_generate_messages_cpp
[  5%] Built target shape_msgs_generate_messages_cpp
[  5%] Built target sensor_msgs_generate_messages_cpp
[  5%] Built target std_msgs_generate_messages_cpp
[  5%] Built target geometry_msgs_generate_messages_cpp
[  9%] Built target object_recognition_msgs_generate_messages_cpp
[  9%] Built target geometry_msgs_generate_messages_lisp
[  9%] Built target shape_msgs_generate_messages_lisp
[  9%] Built target actionlib_msgs_generate_messages_lisp
[  9%] Built target std_msgs_generate_messages_lisp
[  9%] Built target sensor_msgs_generate_messages_lisp
[ 13%] Built target object_recognition_msgs_generate_messages_lisp
[ 13%] Built target object_recognition_msgs_generate_messages
[ 13%] Built target object_recognition_renderer_2d
[ 14%] Building CXX object ork_renderer/src/CMakeFiles/object_recognition_renderer_3d.dir/model.cpp.o
In file included from /home/tomas/ork/src/ork_renderer/src/model.cpp:30:0:
/home/tomas/ork/src/ork_renderer/src/model.h:33:21: fatal error: SDL/SDL.h: No such file or directory
 #include <SDL/SDL.h>
                     ^
compilation terminated.
make[2]: *** [ork_renderer/src/CMakeFiles/object_recognition_renderer_3d.dir/model.cpp.o] Error 1
make[1]: *** [ork_renderer/src/CMakeFiles/object_recognition_renderer_3d.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j1" failed
2019-05-20 02:27:03 -0500 marked best answer Tf broadcaster dynamically changing values

Hi guys,

my robot's sensor angle can be changed during its run so the transformations have to be dynamically changed. For now I have a node which reads pointclouds from the sensor, detects the angle of the sensor and publishes this information on a topic. Then I have a node which publishes transformations (a simple tf broadcaster):

ros::Rate rate(1000);
while(nodeHandler.ok()){
    broadcaster.sendTransform(
      tf::StampedTransform(
        tf::Transform(tf::Quaternion(0, detectedAngle, 0, 1), tf::Vector3(0.12, 0.0, 0.28)),
        ros::Time::now(),"base_footprint", "camera_link"));
    rate.sleep();
  }

I need the broadcaster node to read the message from the angle topic and use it in a detectedAngle variable, so it's always up to date. Now I'm not sure how the code should look like. I probably cannot use the typical subscriber syntax with ros::spin() as I have this cycle in the tf broadcaster. I could write a simple subscriber to the angle topic and publish the transformation in its callback function but I'm not sure if the transformation frequency would be enough (it would be the frequency of the sensor), or would be? Isn't there any tool in ros which could be used here? I imagine something like: the tf broadcaster node publishes transformation with some rate (e.g. 100Hz) and if some message come to the angle topic, the broadcaster updates the detectedAngle variable with the new value and continues publishing transformations.

2019-05-20 02:11:08 -0500 marked best answer Accessing depth data from a pointcloud2 message

Hi all!

I want to select the depth (z) values of a given row from a sensor_msgs/pointcloud2 message. I have this code so far:

for (int i = 0; i < cloud->width; i++)
{
  int index = cloud->row_step*ROW_NUM + cloud->point_step*i + cloud->fields[2].offset;
  memcpy(&depth_data[i], &cloud->data[index], sizeof(float));
}

However the code is probably not correct, as the values it gives don't seem to be the real ones. I chose the middle row of the pointcloud (num. 239) and put the sensor in front of the wall, so "the ray of the middle row" should be normal to the wall and so the z value should be the real distance from the wall. The result was: real distance 2m, the z value from the message 0.001. When I changed the row number to some other value, the z values were even below 0 (which is definitely not correct as I want to get the forward distances). So what am I doing wrong in my code? (I do not want to convert the ros message to a pcl structure.) Thanks in advance!

2019-04-25 07:36:31 -0500 received badge  Famous Question (source)
2019-03-18 14:12:41 -0500 received badge  Famous Question (source)
2018-09-27 04:55:18 -0500 marked best answer Make ros to link against Opencv3

I have ros indigo and opencv 3.0.0 installed on my system and wanted to install object recognition kitchen with ork.rosinstall from their installation tutorial. I can't even compile the ork. Before, when I had opencv 2.4.8 everything was alright. I read somewhere that ros is linked against opencv 2.4 so I wonder if it is even possible to run it with opencv 3. While compiling ORK a get these errors, which I didn't get when I had 2.4.8 version of opencv. I could installed old version back but it doesn't seem as a good solution to me.

Base path: /home/tomas/ws
Source space: /home/tomas/ws/src
Build space: /home/tomas/ws/build
Devel space: /home/tomas/ws/devel
Install space: /home/tomas/ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/tomas/ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/tomas/ws/build"
####
[  0%] Built target rosgraph_msgs_generate_messages_py
[  1%] Built target openni_wrapper
[  1%] Built target nav_msgs_generate_messages_cpp
[  1%] Built target roscpp_generate_messages_lisp
[  1%] [  1%] [  1%] Building CXX object ork_renderer/src/CMakeFiles/object_recognition_renderer_2d.dir/renderer2d.cpp.o
Building CXX object opencv_candidate/src/opencv_candidate/CMakeFiles/opencv_candidate.dir/datamatrix.cpp.o
Built target object_recognition_renderer_3d
[  1%] Built target sensor_msgs_generate_messages_cpp
[  1%] Built target sensor_msgs_generate_messages_lisp
[  1%] Building CXX object ecto_image_pipeline/src/CMakeFiles/ecto_image_pipeline.dir/calibration.cpp.o
[  1%] Built target sensor_msgs_generate_messages_py
[  1%] Built target topic_tools_generate_messages_cpp
[  4%] Built target ecto
[  4%] Built target geometry_msgs_generate_messages_py
[  4%] Built target geometry_msgs_generate_messages_cpp
[  4%] [  4%] Built target topic_tools_generate_messages_lisp
Building CXX object ecto_opencv/cells/cv_bp/opencv/CMakeFiles/opencv_boost_python.dir/cv_mat.cpp.o
[  4%] [  5%] Built target geometry_msgs_generate_messages_lisp
Building CXX object ecto_opencv/cells/cv_bp/opencv/CMakeFiles/opencv_boost_python.dir/cv_highgui.cpp.o
[  5%] Built target roscpp_generate_messages_py
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libopencv_videostab.so.2.4.8', needed by `/home/tomas/ws/devel/lib/python2.7/dist-packages/ecto_opencv/cv_bp.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[  5%] Building CXX object ecto_opencv/cells/cv_bp/opencv/CMakeFiles/opencv_boost_python.dir/highgui_defines.cpp.o
[  5%] [  5%] Built target rosgraph_msgs_generate_messages_lisp
Built target topic_tools_generate_messages_py
[  5%] Built target actionlib_msgs_generate_messages_py
[  5%] Built target std_msgs_generate_messages_lisp
[  5%] Built target nav_msgs_generate_messages_py
[  5%] Built target rosgraph_msgs_generate_messages_cpp
[  5%] Built target std_msgs_generate_messages_cpp
[  5%] Built target actionlib_msgs_generate_messages_lisp
[  5%] Built target std_msgs_generate_messages_py
[  5%] Built target nav_msgs_generate_messages_lisp
[  5%] Built target actionlib_msgs_generate_messages_cpp
[  5%] Built target roscpp_generate_messages_cpp
/home/tomas/ws/src/opencv_candidate/src/opencv_candidate/datamatrix.cpp:4:37: fatal error: opencv2/legacy/compat.hpp: No such file or directory
 #include <opencv2/legacy/compat.hpp>
                                     ^
compilation terminated.
make[2]: *** [opencv_candidate/src/opencv_candidate/CMakeFiles/opencv_candidate.dir/datamatrix.cpp.o] Error 1
make[1]: *** [opencv_candidate/src/opencv_candidate/CMakeFiles/opencv_candidate.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libopencv_videostab.so.2.4.8', needed by `/home/tomas/ws/devel/lib/python2.7/dist-packages/ecto_ros/ecto_ros_main.so'.  Stop.
make[1]: *** [ecto_ros/src/CMakeFiles/ecto_ros_main_ectomodule.dir/all] Error 2
/home/tomas/ws/src/ork_renderer/src/renderer2d.cpp: In member function ‘virtual void Renderer2d::render(cv::Mat&, cv::Mat&, cv::Mat&, cv::Rect&) const ...
(more)
2018-06-29 17:10:44 -0500 marked best answer Running rosrun with gdb

I am running this in ros:

rosrun object_recognition_capture upload -i final.bag -n 'example' example --commit

object_recognition_capture is a package and I want to run it with all these options. How can I run it with debuger, if there is any possible way to do it? The problem is that this system is c++/python hybrid. Called upload program is a python code, but it calls c++ functions. So I can't use neither gdb nor pdb.

2018-05-12 16:21:37 -0500 received badge  Famous Question (source)
2018-05-12 16:21:37 -0500 received badge  Notable Question (source)
2018-05-12 16:21:37 -0500 received badge  Popular Question (source)
2018-04-22 09:59:43 -0500 received badge  Notable Question (source)
2018-03-10 17:35:27 -0500 received badge  Popular Question (source)
2018-03-10 17:35:27 -0500 received badge  Notable Question (source)
2018-02-22 23:27:52 -0500 received badge  Famous Question (source)
2018-01-29 07:50:06 -0500 received badge  Notable Question (source)
2017-11-16 08:07:37 -0500 received badge  Famous Question (source)
2017-11-07 07:29:06 -0500 received badge  Famous Question (source)
2017-10-22 03:30:54 -0500 received badge  Notable Question (source)
2017-10-07 19:29:47 -0500 received badge  Popular Question (source)
2017-10-07 04:19:47 -0500 commented answer Length of the ranges array in a LaserScan msg

Oh, it's a vector. I thought it's a normal array. Thanks, now I get it.

2017-10-07 04:19:41 -0500 marked best answer Length of the ranges array in a LaserScan msg

Hi,

I'm having this programming problem: I'm cycling through the ranges array in LaserScan messages and accessing its values. I'm using just this simple for cycle:

for (int i = 0; i < sizeof(scan->ranges)/sizeof(scan->ranges[0]); i++)

But the expression for getting the array length returns the value of 6, although the scan contains many more values (seen them through rostopic echo). What am I doing wrong? Isn't this the normal way of obtaining the length of an array in C++?

2017-10-07 02:57:33 -0500 edited question Length of the ranges array in a LaserScan msg

Length of the ranges array in LaserScan msg Hi, I'm having this programming problem: I'm cycling through the ranges arr

2017-10-07 02:57:05 -0500 asked a question Length of the ranges array in a LaserScan msg

Length of the ranges array in LaserScan msg Hi, I'm having this programming problem: I'm cycling through the ranges arr

2017-09-22 12:23:16 -0500 commented question ROS Indigo odd getParam compile error

Hi, isn't there a version of indigo written somewhere to compare? E.g. when you start a new node in a terimnal.

2017-09-21 12:14:20 -0500 edited question Accessing depth data from a pointcloud2 message

Accessing pointcloud2 data Hi all! I want to select the depth (z) values of a given row from a sensor_msgs/pointcloud2

2017-09-21 06:52:03 -0500 received badge  Notable Question (source)
2017-09-21 04:13:48 -0500 edited question Accessing depth data from a pointcloud2 message

Accessing pointcloud2 data Hi all! I want to select the depth (z) values of a given row from a sensor_msgs/pointcloud2

2017-09-21 03:49:16 -0500 received badge  Popular Question (source)