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

delta785's profile - activity

2019-08-15 12:18:31 -0500 received badge  Nice Question (source)
2016-06-18 00:40:23 -0500 received badge  Taxonomist
2014-12-18 09:14:56 -0500 received badge  Famous Question (source)
2014-09-14 23:02:13 -0500 received badge  Famous Question (source)
2014-09-14 23:02:13 -0500 received badge  Notable Question (source)
2014-07-30 00:59:02 -0500 received badge  Famous Question (source)
2014-07-30 00:59:02 -0500 received badge  Notable Question (source)
2014-07-05 10:59:05 -0500 received badge  Notable Question (source)
2014-05-30 04:48:31 -0500 received badge  Popular Question (source)
2014-05-29 10:00:18 -0500 commented answer Include image in roslaunch

Mark the answer as correct, please. :)

2014-05-28 11:09:02 -0500 received badge  Student (source)
2014-05-28 10:07:01 -0500 commented answer Include image in roslaunch

and then you can run your program with rosrun mynode mynode te.jpg, and THEN you can add args in your launch file. Hardcoding thingies isn't good

2014-05-28 10:05:22 -0500 commented answer Include image in roslaunch

Probably somehow it could be done. But you'd better use arguments, it will make your application more flexible.You do it by typing, for example, string name; name = argv[1] and then using it in imread (maybe with some easy data conversion from string to char *).

2014-05-28 09:39:16 -0500 commented answer Include image in roslaunch

Anyway it's strange that locating your jpeg file in exe directory doesnt work. Do you put it in devel/lib/package_name/ folder?

2014-05-28 09:36:25 -0500 commented answer Include image in roslaunch

Try if this works - imread("/home/username/te.jpg"); and put the jpg file in your user folder. For test its fine, but you shouldnt do it often :P

2014-05-28 09:03:04 -0500 received badge  Teacher (source)
2014-05-28 08:58:22 -0500 commented answer Include image in roslaunch

So it's inside the code itself? I don't remember precisely, try placing the image either in the executable folder or launch file folder. With no need in using any args in launch file. You can also pass the image path as an argument - this way you wont need to copy your jpg.

2014-05-28 08:14:29 -0500 answered a question Include image in roslaunch

You need to use args in your node call in launch file.

<node pkg="rospy_demo" type="listener" args="$(find mypkg)/resources/test.jpg" />. (just random example from google)

For just running the program (with rosrun, for example) put the absolute path to the file - here it will be imread("/home/username/img.jpg") or put the image in the executable folder - it should be devel/lib/package_name/

2014-05-28 07:56:48 -0500 commented question ueye undefined reference using catkin_make

Ding dong! Correct answer. Many thanks!

2014-05-27 05:27:06 -0500 asked a question ueye undefined reference using catkin_make

I stumbled upon a difficulty, when trying to work with uEye camera. I've added include "ueye.h"

to work with code:

HIDS hCam = 1;

INT nRet = is_InitCamera (&hCam, NULL);

Yet this is the output when I try to do catkin_make using my CMakeLists ( http://pastebin.com/u8f4t2Fc )

CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o: In function `main':
ros_aruco.cpp:(.text+0x578): undefined reference to `is_InitCamera'
collect2: ld returned 1 exit status

What should I add to make it work?

2014-05-26 10:57:18 -0500 marked best answer Rosrun executable not found

Hello,

I'm trying to run a node from rosrun (it works when I manually enter ./program inside build directory). Yet it doesn't work when called by rosrun - it finds the directory by tab completion, but not the executable. How can I help it? I need it to use it in launch files.

[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/user/ros_ws/catkin_ws/src/ros_programme
2014-05-26 09:59:01 -0500 commented answer Rosrun executable not found

Aaand that's it! Many thanks. You're the only one who was interested in my problem for more than 5s. :D

2014-05-26 06:58:34 -0500 received badge  Popular Question (source)
2014-05-25 18:29:18 -0500 commented answer Rosrun executable not found

Sorry, i wrote only the directory. The output of find function is: ./src/ros_aruco ./build/ros_aruco ./build/ros_aruco/ros_aruco

2014-05-25 10:34:18 -0500 commented answer Rosrun executable not found

A directory. So I normally run my node by typing cd build/ros_aruco and then ./ros_aruco

2014-05-25 10:24:58 -0500 commented answer Rosrun executable not found

catkin_ws/build/ros_aruco

2014-05-25 09:55:00 -0500 commented question Problems managing workspace and ROS_PACKAGE_PATH

So did you use rosws init and then rosws set? As described here: http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment

2014-05-25 09:46:13 -0500 received badge  Popular Question (source)
2014-05-25 09:43:18 -0500 received badge  Scholar (source)
2014-05-25 09:43:16 -0500 commented answer libyaml-cpp error when using catkin_make on gscam

Aaaand that solved the problem. Many thanks!

2014-05-25 09:31:59 -0500 commented answer Rosrun executable not found

http://pastebin.com/rRKEQCXp

2014-05-25 09:28:18 -0500 commented answer libyaml-cpp error when using catkin_make on gscam

Ubuntu 12.04

2014-05-25 09:26:55 -0500 commented answer libyaml-cpp error when using catkin_make on gscam

And the output after sudo apt-get install libyam TAB TAB libyaml-0-2 libyaml-dev libyaml-shell-perl libyaml-0-2-dbg libyaml-libyaml-perl libyaml-syck-perl libyaml-appconfig-perl libyaml-perl libyaml-tiny-perl

2014-05-25 09:26:02 -0500 received badge  Commentator
2014-05-25 09:26:02 -0500 commented answer libyaml-cpp error when using catkin_make on gscam

output: E: Unable to locate package libyaml-cpp-dev

2014-05-25 09:15:07 -0500 commented answer libyaml-cpp error when using catkin_make on gscam

I don't have any libyaml-cpp libraries avalaible there.Only some libyaml libraries. I tried installing libyaml-dev but it didn't help.Any suggestions?

2014-05-25 09:07:41 -0500 commented answer Rosrun executable not found

You mean source devel/setup.bash in my catkin_ws? That's the first thing I do, always. I think I should add it to bashrc. :P Anyway, my ugly line of code is the only thing so far that allows me to run my node from rosrun.

2014-05-25 05:23:46 -0500 asked a question libyaml-cpp error when using catkin_make on gscam

I ran across a problem, probably because I deleted one day some files related to libyaml. Anyway when I try to build gscam (ros package) I get this error.

/usr/bin/ld: warning: libyaml-cpp.so.0.2, needed by /opt/ros/hydro/lib/libcamera_calibration_parsers.so, not found (try using -rpath or -rpath-link)
/opt/ros/hydro/lib/libcamera_calibration_parsers.so: undefined reference to `YAML::Node::begin() const'

And I can't find where I could get it. I mean, I've downloaded 0.3 version from code google yaml-cpp and it works for my purposes. Any help?

2014-05-24 21:22:20 -0500 commented answer Rosrun executable not found

I'm open to any new suggestions that works AND will place the exe in the devel directory. So far I couldn't find any.

2014-05-24 05:44:34 -0500 answered a question problem with rostopic echo /amcl_pose

Check

rosparam get use_sim_time

and then you may try

rosparam set use_sim_time false

You may have activated it, yet didn't create any clock source

2014-05-24 05:38:54 -0500 received badge  Supporter (source)
2014-05-24 05:37:40 -0500 answered a question Rosrun executable not found

The correct answer to this problem is to add

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

at the beginning of CMakeLists.txt.

2014-05-23 22:10:45 -0500 asked a question Using rostopic /image_raw for VideoCapture in OpenCV

Hello, All of a sudden, I need to change my approach from calling TheVideoCapturer.open(0); (TheVideoCapturer is of a class VideoCapture) to open my internet camera (id 0) to subscribing to published image_raw topic. What are the easiest steps here? I'd like to use my TheVideoCapturer object still, because changing everything would be really troublesome.