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

MichaelHsu170's profile - activity

2015-05-21 06:39:17 -0500 received badge  Nice Question (source)
2014-01-28 17:23:09 -0500 marked best answer libopencv2.3-dev conflict Ubuntu 11.10 32-bit

I'm just wondering when could the problem be fixed?

I'm running a 32-bit Ubuntu 11.10, and the installation of ros-electric-desktop-full always ends up with the following error.

xxx@ubuntu:~$ sudo apt-get install ros-electric-desktop-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: ros-electric-desktop-full : Depends: ros-electric-vision-opencv (= 1.6.7-s1320939105~oneiric) but it is not going to be installed
Depends: ros-electric-image-pipeline (= 1.6.3-s1320939324~oneiric) but it is not going to be installed Depends: ros-electric-image-transport-plugins (= 1.4.2-s1320939218~oneiric) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Installation of ros-electric-vision-opencv ends up with the following

xxx@ubuntu:~$ sudo apt-get install ros-electric-vision-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: ros-electric-vision-opencv : Depends: libopencv2.3-dev (= 2.3.1+svn6514+branch23-7~oneiric) but 2.3.1+svn6514+branch23-8~oneiric is to be installed
E: Unable to correct problems, you have held broken packages.


xxx@ubuntu:~$ uname -a
Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

2013-10-21 02:07:36 -0500 received badge  Nice Question (source)
2013-02-03 06:05:09 -0500 received badge  Taxonomist
2012-10-01 01:54:40 -0500 received badge  Famous Question (source)
2012-09-09 22:28:23 -0500 received badge  Famous Question (source)
2012-08-16 07:56:45 -0500 received badge  Famous Question (source)
2012-07-04 06:09:35 -0500 received badge  Notable Question (source)
2012-04-25 06:22:02 -0500 received badge  Notable Question (source)
2012-03-19 01:23:47 -0500 received badge  Popular Question (source)
2012-03-05 09:58:13 -0500 received badge  Popular Question (source)
2012-02-28 04:22:01 -0500 received badge  Notable Question (source)
2012-02-20 22:55:18 -0500 received badge  Famous Question (source)
2012-02-17 23:34:36 -0500 marked best answer about compiling opencv programs outside ROS

How could I compile opencv programs outside ROS?

I installed the opencv-2.3.1 package through ROS, but there seems to be link errors when compiling opencv programs outside ROS.

I created a Makefile file with the following content

DisplayImage:DisplayImage.cpp
    @g++ -L/usr/lib/ `pkg-config opencv-2.3.1 --cflags --libs` -o DisplayImage DisplayImage.cpp

But the compiling result is

XXX@ubuntu:~/Documents/programs/OpenCV$ make
/usr/bin/ld: cannot find -l/usr/lib/libopencv_contrib.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_legacy.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_objdetect.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_calib3d.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_features2d.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_video.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_highgui.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_ml.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_imgproc.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_flann.so.2.3.1
/usr/bin/ld: cannot find -l/usr/lib/libopencv_core.so.2.3.1
collect2: ld returned 1 exit status
make: * [DisplayImage] Error 1

pkg-config --libs --cflags opencv-2.3.1

shows

-I/usr/include/opencv-2.3.1/opencv -I/usr/include/opencv-2.3.1 -l/usr/lib/libopencv_contrib.so.2.3.1 -l/usr/lib/libopencv_legacy.so.2.3.1 -l/usr/lib/libopencv_objdetect.so.2.3.1 -l/usr/lib/libopencv_calib3d.so.2.3.1 -l/usr/lib/libopencv_features2d.so.2.3.1 -l/usr/lib/libopencv_video.so.2.3.1 -l/usr/lib/libopencv_highgui.so.2.3.1 -l/usr/lib/libopencv_ml.so.2.3.1 -l/usr/lib/libopencv_imgproc.so.2.3.1 -l/usr/lib/libopencv_flann.so.2.3.1 -l/usr/lib/libopencv_core.so.2.3.1

How could I fix the problem? Thank you.

2012-01-03 06:48:53 -0500 received badge  Notable Question (source)
2011-12-30 23:16:32 -0500 received badge  Popular Question (source)
2011-12-01 10:33:43 -0500 commented answer Pan tilt zoom camera
Thank you very much~
2011-11-30 09:34:56 -0500 commented answer Pan tilt zoom camera
Thank you for your edit. For it is not designed for Axis 214 to mount something on it, I'm not sure whether motors inside are powerful enough to drive both the camera lens and Kinect, so there was the second question~ :-D Anyway, Thanks a lot~
2011-11-29 23:00:57 -0500 commented answer About geometry_msgs/Twist
It helps, thanks.
2011-11-29 17:15:50 -0500 commented answer About geometry_msgs/Twist
Thanks, I'll read sources of p2os package.
2011-11-29 17:14:50 -0500 marked best answer About geometry_msgs/Twist

Hi, These are just msgs in a structured way so that they can be published or subscribed by a node. They are just values. It depends on the node which actually uses them to manipulate robot. It depends on how you want to use it. For example in teleop_base package the teleop_base_keyboard.cpp takes the msgs from keyboard and uses them as m/sec. If your node takes this msgs as mm/sec then the node execution will be accordingly.

You can know the msg types by the following command.

rosmsg show geometry_msgs/Twist

whose output is

geometry_msgs/Vector3 linear
  float64 x
  float64 y
  float64 z
geometry_msgs/Vector3 angular
  float64 x
  float64 y
  float64 z

Hope this helps, Karthik

2011-11-29 16:44:23 -0500 asked a question About geometry_msgs/Twist

Are there any instructions about the meaning of geometry_msgs/Twist elements? e.g. What's the unit of linear and angular, m/s? degree/min? degree/s?

2011-11-29 10:20:04 -0500 commented answer Pan tilt zoom camera
Thanks a lot. I've some questions about Axis 214, though. 1. Does its api work under Ubuntu / Linux? I found that their website only mentioned for Windows developers. 2. Do you think it is possible to mount a Kinect sensor on the top of Axis 214 to make the Kinect sensor pan tilt with 214? Thank you
2011-11-29 10:20:04 -0500 received badge  Commentator
2011-11-29 09:58:48 -0500 marked best answer Pan tilt zoom camera

Here is a list of supported cameras in ROS. Additionally, there exist camera drivers for other types of camera. For example, my company uses the Axis 214 PTZ camera. It's a network camera with pan/tilt/zoom and also with audio capabilities. It provides 704x576 maximum resolution at 60 fps. It also comes with its own programming API to control the pan-tilt-zoom. Drivers can be found here.

EDIT: All Axis cameras provide a control API known as Vapix. This is a HTTP-based programming library. You essentially send web-scripts to the HTTP server that's running on the camera. The camera then returns a message that expresses success or failure, etc. To program with ROS, you'd need to convert ROS commands to simple Vapix messages, send them over UDP, and then parse the response into ROS-readable format. I think the Axis 214 uses Vapix 2.0, but I'm not entirely sure. Google will tell you for sure.

As for mounting the Kinect on the camera, I don't see a reason that you couldn't do that. It would certainly look interesting to say the least. You'd just have to be careful to leave room for the camera to rotate properly, but that shouldn't be difficult.

2011-11-29 08:17:18 -0500 received badge  Popular Question (source)
2011-11-28 22:10:09 -0500 asked a question Pan tilt zoom camera

Hi guys, I'm working on a research on robot vision with a robot platform of Pioneer 2DX run in ROS. Would you like to introduce me some models of pan tilt zoom camera priced around $1500? My OS is Ubuntu 11.10. Thanks.

2011-11-20 01:22:19 -0500 received badge  Peer Pressure (source)
2011-11-19 12:20:42 -0500 commented answer bash: /opt/ros/electric/setup.bash: Permission denied
not running ROS as root, but register environment variables as root. Doesn't "Permission denied" means the need of administration authorization?