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

sdorman's profile - activity

2019-02-12 03:03:18 -0500 received badge  Nice Question (source)
2019-01-24 23:54:01 -0500 received badge  Famous Question (source)
2018-08-19 10:03:00 -0500 received badge  Famous Question (source)
2018-07-08 05:22:07 -0500 received badge  Notable Question (source)
2018-06-27 09:40:43 -0500 received badge  Popular Question (source)
2018-06-19 11:20:58 -0500 received badge  Student (source)
2018-06-19 11:20:44 -0500 received badge  Nice Answer (source)
2018-06-19 11:03:35 -0500 received badge  Self-Learner (source)
2018-06-19 10:43:23 -0500 marked best answer Error in loading whycon file

I’m trying to run Whycon using ROS Kinetic with a USB camera on Ubuntu 16.04 LTS. I followed the whycon tutorial to calibrate the camera. After calibration, I ran in my home directory:

sdorman@ikon:~$ ROS_NAMESPACE=usb_cam rosrun image_proc image_proc

And in a new terminal:

sdorman@ikon:~/catkin_ws$ rosrun image_view image_view image:=usb_cam/image_rect_color This worked with no issues. I then unpacked the calibration data from the tar.gz file using $tar -xvzf and then converted the ost.txt file to an ost.ini via

sdorman@ikon:~$ mv ost.txt ost.ini

And then ran:

sdorman@daikon:~$ rosrun camera_calibration_parsers convert ost.ini whycon_transforms.yml
[ INFO] [1525377222.129394510]: Saved whycon_transforms.yml

to convert to a yml file. I sourced catkin_ws and then moved up to the whycon directory to run

sdorman@ikon:~/catkin_ws/src$ rosrun whycon whycon _targets:=1

Here I get the error “could not load file”.

sdorman@ikon:~/catkin_ws$ rosrun whycon whycon _targets:=1
[ INFO] [1525461972.198655861]: Loading file whycon_transforms.yml
[ WARN] [1525461972.198760338]: Could not load "whycon_transforms.yml"

This error also occurs in any other directory than my catkin_ws/src folder. If I move back to ~/catkin_ws/src I get the following error.

sdorman@ikon:~/catkin_ws/src$ rosrun whycon whycon _targets:=1
[ INFO] [1525461901.679379776]: Loading file whycon_transforms.yml
terminate called after throwing an instance of 'YAML::TypedBadConversion<double>'
  what():  yaml-cpp: error at line 0, column 0: bad conversion
Aborted (core dumped)

I’ve tried re-downloading Whycon and repeating the entire process but that did not work. I’m not sure where I went wrong, but any help would be appreciated.

Here's the whycon_ros file:

C:\fakepath\1st part of whycon.JPG

C:\fakepath\2nd part of whcon.JPG

C:\fakepath\3rd part of whycon.JPG

WHYCON_TRANSFORMS.YML file

image_width: 640
image_height: 480
camera_name: narrow_stereo
camera_matrix:
  rows: 3
  cols: 3
  data: [664.135327, 0, 343.103845, 0, 668.256661, 227.776189, 0, 0, 1]
distortion_model: plumb_bob
distortion_coefficients:
  rows: 1
  cols: 5
  data: [0.141424, -0.347581, 0.002344, 0.008555999999999999, 0]

rectification_matrix:
  rows: 3
  cols: 3
  data: [1, 0, 0, 0, 1, 0, 0, 0, 1]
projection_matrix:
  rows: 3
  cols: 4
  data: [672.257385, 0, 347.376007, 0, 0, 681.516541, 228.472198, 0, 0, 0, 1, 0]
2018-06-19 10:38:31 -0500 marked best answer Design a bounding box in Rviz using poses information

I'm using ROS Kinetic on Ubuntu 16.04 LTS.

I'm trying to draw a bounding box around four poses which are displayed as arrows in Rviz. I looked at using the Rviz Basic Shapes tutorial but I don't know how to adapt that code so that the box would remain around the poses if the position of the poses changed. From what I can tell, you have to manually set specific values for the vertices of the box in the Basic Shapes tutorial. I need the vertices to be determined from the pose positions.

The poses are output as <geometry_msgs/PoseArray> and represent positions of Whycon targets tracked using a usb_cam. These targets might have to move around for the desired application.

Is it possible to create this box?

2018-06-19 10:38:31 -0500 received badge  Scholar (source)
2018-06-19 10:35:58 -0500 answered a question Design a bounding box in Rviz using poses information

So I figured out how to do this. I used the Points and Lines tutorial as a reference and used the line strip function of

2018-06-13 15:55:22 -0500 asked a question Design a bounding box in Rviz using poses information

Design a bounding box in Rviz using poses information I'm using ROS Kinetic on Ubuntu 16.04 LTS. I'm trying to draw a

2018-05-17 20:25:27 -0500 received badge  Self-Learner (source)
2018-05-17 20:25:27 -0500 received badge  Teacher (source)
2018-05-17 19:58:24 -0500 received badge  Notable Question (source)
2018-05-17 17:17:41 -0500 answered a question Error in loading whycon file

So I ended up using the rviz Image display and that worked fine. I can't overlay the tracking over my image but I don't

2018-05-16 08:11:57 -0500 received badge  Enthusiast
2018-05-09 15:48:38 -0500 commented answer Error in loading whycon file

I've been attempting to continue onward (ignoring said error). I now can't get the whycon to actually publish whycon/cam

2018-05-09 15:07:31 -0500 commented answer Error in loading whycon file

https://github.com/lrse/whycon I've been using these files.

2018-05-07 12:05:36 -0500 received badge  Popular Question (source)
2018-05-07 08:16:04 -0500 edited question Error in loading whycon file

Error in loading whycon file I’m trying to run Whycon using ROS Kinetic with a USB camera on Ubuntu 16.04 LTS. I followe

2018-05-07 08:07:58 -0500 commented answer Error in loading whycon file

I've tried that. If I run rosrun whycon whycon _targets:=1 in my home directory, I get "could not load file." If I run i

2018-05-04 20:47:45 -0500 commented question Error in loading whycon file

Sorry, I couldn't upload photos.

2018-05-04 20:47:44 -0500 asked a question Error in loading whycon file

Error in loading whycon file I’m trying to run Whycon using ROS Kinetic with a USB camera on Ubuntu 16.04 LTS. I followe