Ask Your Question

mikegao88's profile - activity

2018-08-08 01:36:06 -0600 marked best answer link to opencv2 in kinetic

Hello! I am using ROS Kinetic on Ubuntu 16.04 Xenial 64bit. I have installed both opencv2 (by libopencv-dev) and opencv3 (by ros-kinetic-opencv3). A project of mine depends on cv_bridge, the problem is: by compilation opencv3 is always linked instead of opencv2 that is acutally needed, although in CMakeLists.txt I have explicitly indicated to use opencv2:

find_package(OpenCV 2.4.9.1 EXACT REQUIRED)

I also tried:

find_package(OpenCV 2 REQUIRED)

but it failed too. If I remove the dependency of cv_bridge in CMakeLists.txt, opencv2 is correctly linked, but the compilation complains the lack of cv_bridge library. Any suggestion or experience on this issue? Thanks in advance!

PS: when I output the path where the opencv2 header files are found to be stored in CMakeLists.txt:

message( STATUS "OpenCV Include Dir: " ${OpenCV_INCLUDE_DIRS} )

it gives me a weird result:

/usr/include/opencv/usr/include

although it does not break the compilation when the dependency on cv_bridge is removed.

2018-04-17 02:35:41 -0600 received badge  Nice Question (source)
2017-11-07 13:11:55 -0600 received badge  Student (source)
2017-11-06 03:51:10 -0600 received badge  Famous Question (source)
2017-06-15 10:52:00 -0600 received badge  Famous Question (source)
2017-06-15 10:52:00 -0600 received badge  Notable Question (source)
2017-05-19 16:32:37 -0600 commented question link to opencv2 in kinetic

Unfortunately, it does not. Actually, the workaround is to clone cv_bridge source, and switch it to indigo branch to for

2017-05-19 16:28:57 -0600 received badge  Popular Question (source)
2017-05-17 17:10:16 -0600 asked a question link to opencv2 in kinetic

link to opencv2 in kinetic Hello! I am using ROS Kinetic on Ubuntu 16.04 Xenial 64bit. I have installed both opencv2 (by

2016-04-28 11:19:12 -0600 received badge  Famous Question (source)
2015-11-10 07:51:48 -0600 commented answer How to set parameter for std::map structure in launch file

Hi, this is his original answer. Later I figured it out by myself and posted the answer here. "PS: It is possible to store an entire map with a single name on the parameter server, but I know of no way to use that feature with launch files. You will need to specify a parameter for each map element."

2015-11-06 01:29:54 -0600 received badge  Notable Question (source)
2015-11-04 05:30:29 -0600 received badge  Editor (source)
2015-11-04 05:13:35 -0600 received badge  Popular Question (source)
2015-11-04 05:13:35 -0600 received badge  Popular Question (source)
2015-11-04 05:12:43 -0600 answered a question How to set parameter for std::map structure in launch file

I figured it out, one can do it by using rosparam command in a ros launch file in this way:

<node pkg="xxx" name="yyy" type="ggg" output="screen">
  <!-- without "~" in front of the parameter name -->
  <rosparam param="name_map_structure">
     x: 1
     y: 2
     z: 3
  </rosparam>
</node>

Assume here that the private parameter name_map_structure is an instance of std::map<std::string, int>.

2015-11-03 12:55:55 -0600 asked a question How to set parameter for std::map structure in launch file

Hello! As described in the title, my question is how I could input the parameter for a std::map structure in a roslaunch file, which is needed by a node. I use ros-indigo. Thanks in advance!

2015-10-02 02:56:02 -0600 received badge  Enthusiast
2015-07-20 15:51:40 -0600 received badge  Notable Question (source)
2015-06-10 02:42:44 -0600 received badge  Popular Question (source)
2015-05-28 09:37:43 -0600 asked a question Target within footprint range for local planner

Hello! I am using the DWA local planner of ROS-Indigo to do some local navigation tests, and have found, that the robot behaves strangely, if I set a target within its footprint range. For example, if the half length of the mobile platform is 0.55m, and I give it the target (0.4, 0.0) in the local coordinate frame of the robot (of course this target will be later transformed to the global frame, which is robot_odom in my case), instead of just moving forward, the robot starts to rotate weirdly in either clockwise or counter-clockwise direction. The robot behaves as expected, if the target is beyond the footprint range, e.g. (1.0, 0.0) in the local coordinate frame of the robot. So is there something I misunderstand or ignore, which results into the problem? The original plan is to use the local planner of ROS to control the robot to safely track some target (while keeping some distance in between). Thanks in advance for your reply!