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

daniel_dsouza's profile - activity

2020-12-04 11:10:42 -0500 received badge  Nice Question (source)
2019-07-12 13:11:02 -0500 edited answer Any OpenCV 3 with Kinetic?

I believe that Kinetic comes with OpenCV 3.2 or 3.3 by default. You can use newer versions of OpenCV with ROS, but you

2019-07-12 13:09:02 -0500 answered a question Any OpenCV 3 with Kinetic?

I believe that Kinetic comes with OpenCV 3.2 or 3.3 by default. You can use newer versions of OpenCV with ROS, but you

2019-07-12 13:09:02 -0500 received badge  Rapid Responder (source)
2018-09-19 17:22:08 -0500 marked best answer How to move TurtleBot in gazebo 7

Hello,

I am trying to simulate at TurtleBot in Gazebo 7 (with Kinetic Kame), however I am having sending a velocity to the simulated robot. I was able to fix the xacro files to properly create a URDF that Kinetic Kame liked, and I am also able to receive the Kinect data. However, I am unable to send velocity commands from the nodelet to Gazebo.

Looking into the Gazebo 7 documentation, I noticed that I am expected to use ros_control controllers to received data in Gazebo. However, I could not find where in the URDF the existing Indigo implementation of the controllers was. I tried looking in the Koubki configuration file, but all I saw was link and joint information.

Are controllers used in Indigo? If so, where can I find them to modify them? Am I approaching this wrong? If so, how should I fix this?

2017-11-14 10:09:26 -0500 received badge  Guru (source)
2017-11-14 10:09:26 -0500 received badge  Great Answer (source)
2017-11-01 07:12:48 -0500 received badge  Favorite Question (source)
2017-10-26 11:41:42 -0500 received badge  Good Answer (source)
2017-10-14 01:40:23 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

Good for you! To answer your question, you would have to recompile the packages in vision_opencv to make sure the correc

2017-10-12 12:35:50 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

@k_totoro, please see the update to my answer with the github repo

2017-10-12 12:27:03 -0500 edited answer Having trouble using CUDA enabled OpenCV with kinetic

Hello previous me, So you have the opencv3 package installed, which provides libraries in /opt/ros/kinetic/lib, and you

2017-10-12 12:26:00 -0500 edited answer Having trouble using CUDA enabled OpenCV with kinetic

Hello previous me, So you have the opencv3 package installed, which provides libraries in /opt/ros/kinetic/lib, and you

2017-10-12 01:40:35 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

@k_totoro Hello. I had to download the vision_opencv metapackage , and make the above changes to the cv_bridge and image

2017-10-12 01:39:07 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

@k_totoro Hello. I had to download the vision_opencv metapackage , and make the above changes to the cv_bridge and image

2017-10-12 01:38:59 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

@k_totoro Hello. I had to download the vision_opencv metapackage package, and make the above changes to the cv_bridge an

2017-10-12 01:38:49 -0500 commented answer Having trouble using CUDA enabled OpenCV with kinetic

@k_totoro Hello. I had to download the [vision_opencv metapackage(http://wiki.ros.org/vision_opencv) package, and make t

2017-07-26 13:27:26 -0500 received badge  Self-Learner (source)
2017-07-06 22:27:39 -0500 marked best answer Having trouble with custom nodelets

Hello,

I am starting to use nodelets in my image processing pipeline, and I am having trouble loading nodelets. I am using the freenect_stack package as a sample to get started. Whether I use the nodelet loader in c++, a launch file, or command line arguments, the loader refuses to create the nodelets. I am using ROS Hydro, that I compiled from source on Ubuntu 14.04.2 LTS.

I would appreciate any help or troubleshooting steps.

Thanks, Daniel

This is the error, whether I use the command line, roslaunch, or the loader library in c++. The command line and roslaunch also say "service call failed":

Failed to load nodelet [/face_foo] of type [face_provider/face_finder]: MultiLibraryClassLoader: Could not create object of class type face_provider::face_finder as no factory exists for it. Make sure that the library exists and was explicitly loaded through MultiLibraryClassLoader::loadLibrary()

This is the exported face_provider.xml file.

<library path="lib/libface_provider_nodelets">
<class name="face_provider/face_finder" type="face_provider::face_finder" base_class_type="nodelet::Nodelet">
<description>
        Finds faces in images, publishes center.
    </description></class>
<class name="face_provider/face_recognition" type="face_provider::Recognizer" base_class_type="nodelet::Nodelet"><description>
        Identifies faces in images, publishes ID.
    </description></class></library>

If I look under the ~/catkin_ws/devel/lib directory, I find the "libface_provider_nodelets.so" file, and inspecting it shows that there that looks like it loads my nodelets. This is the code I am using to load the plugins:

#include <ros/ros.h>
#include <nodelet/loader.h>

int main(int arc, char **argv) {
    ros::init(arc, argv, "face_provider_node");
    nodelet::Loader manager(true);
    //nodelet::M_string remap(ros::names::getRemappings());
    nodelet::M_string remap;
    nodelet::V_string nargv;
    std::string nodelet_name = ros::this_node::getName();
    manager.load(nodelet_name, "face_provider/face_finder", remap, nargv);
    //manager.load(nodelet_name, "face_provider/face_recognition", remap, nargv);
    ros::spin();
}

My pluginlib macros look like this:

PLUGINLIB_DECLARE_CLASS(face_provider, face_finder, face_provider::face_finder, nodelet::Nodelet);
//where the namespace is face_provider, the header file is face_finder.h, and the class name is face_finder, I was trying different class names, please excuse my syntax.

and

PLUGINLIB_DECLARE_CLASS(face_provider, face_recognition, face_provider::Recognizer, nodelet::Nodelet);
//where the namespace is face_provider, the header file is face_recognition.h, and the class name is Recognizer

EDIT: So I am going back and rewriting this from scratch (as opposed to copying code from my nodes), and I notice that once I include the opencv, imagetransport, and cv_bridge headers, the problem arises. The error code was different, complaining that it couldn't find the library path using some_path/lib//libface_provider_nodelets. Changing my face_provider.xml file changes to "liblibface_provider_nodelets" gives me the familiar "Failed to load nodelet error"

EDIT2:

So I backtracked a bit, and took most of the the openCV code out. However, whenever I include the header for the nodelet where I have opencv code, I get

[ERROR] [1437070859.100828548]: Failed to load nodelet [face_recognizer_nodelet] of type [face_provider/Recognizer]: Failed to load library /home/daniel/catkin_ws/devel/lib//libface_provider_nodelets.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro ...

(more)
2017-06-15 14:58:23 -0500 commented question Having trouble using CUDA enabled OpenCV with kinetic

Could you please link your entire ros package? Until then, look at this (working) example https://github.com/daniel-dsou

2017-06-15 10:58:20 -0500 commented question Having trouble using CUDA enabled OpenCV with kinetic

I believe so. Do you have a Github link to your code? I can try to compile it myself.

2017-06-13 15:01:21 -0500 received badge  Famous Question (source)
2017-05-27 07:54:05 -0500 marked best answer Having trouble using CUDA enabled OpenCV with kinetic

Hello everyone.

I started a new install of ROS Kinetic, and I was hoping to use a few CUDA features from OpenCV. I have successfully compiled and tested CUDA and OpenCV (which is installed in /usr/local), but I am having trouble using my OpenCV instead of the ros-kinetic-opencv3 package.

I have tried adding /usr/local to the front of my CMAKE_PREFIX_PATH, as well renaming the opencv pkgconfig file in /opt/ros/lib/pkconfig. However I still get the below error, indicating that I am building against the ROS OpenCv.

OpenCV Error: No CUDA support (The library is compiled without CUDA support) in throw_no_cuda, file /tmp/binarydeb/ros-kinetic-opencv3-3.1.0/modules/core/include/opencv2/core/private.cuda.hpp, line 97 terminate called after throwing an instance of 'cv::Exception' what(): /tmp/binarydeb/ros-kinetic-opencv3-3.1.0/modules/core/include/opencv2/core/private.cuda.hpp:97: error: (-216) The library is compiled without CUDA support in function throw_no_cuda

Any ideas?