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

burtbick's profile - activity

2020-10-26 04:46:19 -0500 received badge  Nice Answer (source)
2020-01-29 18:28:41 -0500 received badge  Famous Question (source)
2019-09-24 20:47:53 -0500 received badge  Necromancer (source)
2018-09-27 00:48:32 -0500 received badge  Famous Question (source)
2018-08-08 01:44:32 -0500 received badge  Enlightened (source)
2018-08-08 01:44:32 -0500 received badge  Guru (source)
2018-08-08 01:43:20 -0500 marked best answer New problem linking OpenCV Indigo Cplusplus node

Indigo, Ubuntu 14.04 (Linux Mint 17.1)

I had a problem the other day that turned out to be missing find_package(OpenCV) so that was resolved.
But I have a new one. I have a better tracking test that builds and runs fine outside of ROS. But catkin_make gives this:

catkin_make Base path: /home/bbick/ros_ws Source space: /home/bbick/ros_ws/src Build space: /home/bbick/ros_ws/build Devel space: /home/bbick/ros_ws/devel Install space: /home/bbick/ros_ws/install ####

Running command: "make cmake_check_build_system" in "/home/bbick/ros_ws/build"

#### ####

Running command: "make -j6 -l6" in "/home/bbick/ros_ws/build"

#### [ 0%] Built target dynamic_reconfigure_generate_messages_py [ 0%] [ 0%] Built target roscpp_generate_messages_lisp Built target roscpp_generate_messages_cpp [ 11%] Built target talker [ 22%] Linking CXX executable /home/bbick/ros_ws/devel/lib/inmoovhead/myopencvtest Built target listener [ 22%] Built target roscpp_generate_messages_py [ 22%] [ 22%] [ 22%] Built target std_msgs_generate_messages_lisp Built target std_msgs_generate_messages_py Built target rosgraph_msgs_generate_messages_py [ 22%] Built target rosgraph_msgs_generate_messages_lisp [ 22%] Built target rosgraph_msgs_generate_messages_cpp [ 22%] [ 22%] Built target dynamic_reconfigure_gencfg [ 33%] Built target pid_gencfg [ 33%] Built target std_msgs_generate_messages_cpp Built target dynamic_reconfigure_generate_messages_cpp [ 33%] Built target dynamic_reconfigure_generate_messages_lisp [ 33%] Built target diagnostic_msgs_generate_messages_cpp [ 33%] [ 33%] Built target diagnostic_msgs_generate_messages_lisp Built target diagnostic_msgs_generate_messages_py [ 44%] [ 55%] Built target autotune Built target setpoint_node [ 66%] Built target plant_sim [ 77%] Built target controller [ 88%] Built target sim_time CMakeFiles/myopencvtest.dir/src/myopencvtest.cpp.o: In function main': myopencvtest.cpp:(.text+0x46e): undefined reference tocv::CommandLineParser::CommandLineParser(int, char const* const, cv::String const&)' myopencvtest.cpp:(.text+0x4aa): undefined reference to cv::CommandLineParser::has(cv::String const&) const' myopencvtest.cpp:(.text+0x54c): undefined reference tocv::CommandLineParser::printMessage() const' myopencvtest.cpp:(.text+0x8e5): undefined reference to cv::namedWindow(cv::String const&, int)' myopencvtest.cpp:(.text+0x91c): undefined reference tocv::namedWindow(cv::String const&, int)' myopencvtest.cpp:(.text+0x958): undefined reference to cv::setMouseCallback(cv::String const&, void (*)(int, int, int, int, void*), void*)' myopencvtest.cpp:(.text+0x9bb): undefined reference tocv::createTrackbar(cv::String const&, cv::String const&, int, int, void ()(int, void), void)' myopencvtest.cpp:(.text+0xa2d): undefined reference to cv::createTrackbar(cv::String const&, cv::String const&, int*, int, void (*)(int, void*), void*)' myopencvtest.cpp:(.text+0xa9f): undefined reference tocv::createTrackbar(cv::String const&, cv::String const&, int, int, void ()(int, void), void)' myopencvtest.cpp:(.text+0xff0): undefined reference to cv::normalize(cv::_InputArray const&, cv::_InputOutputArray const&, double, double, int, int, cv::_InputArray const&)' myopencvtest.cpp:(.text+0x12b4): undefined reference tocv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)' myopencvtest.cpp:(.text+0x176c): undefined reference to cv::ellipse(cv::_InputOutputArray const&, cv::RotatedRect const&, cv::Scalar_<double> const&, int, int)' myopencvtest.cpp:(.text+0x18aa): undefined reference tocv::imshow(cv::String const&, cv::_InputArray const&)' myopencvtest.cpp:(.text+0x190e): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' myopencvtest.cpp:(.text+0x1a09): undefined reference tocv::destroyWindow(cv::String const&)' myopencvtest.cpp:(.text+0x1a42): undefined reference to cv::namedWindow(cv::String const&, int)' myopencvtest.cpp:(.text+0x1b39): undefined reference tocv::CommandLineParser::~CommandLineParser()' myopencvtest ... (more)

2018-08-08 01:27:09 -0500 marked best answer pocketsphinx package on kinetic

I've been working with Indigo on Linux Mint 17.1 but am in the process of upgrading to Mint 18(.1) so I've installed kinetic. I've gotten the motion bits working and am working on the Speech Synthesis and Recognition parts next.

PocketSphinx has been a bit more of a hassle. There was a poacketsphinx ROS package for Indigo but not for Kinetic. So I pulled in the Indigo package and using an example from Gstreamer for Gstreamer 1.0 / Pocket Sphinx I was able to get it working, kind of. It is recognizing words / phrases from my dictionary but it is NO where near as accurate as with the older version on Indigo.

Has anyone done anything with PocketSphinx on Kinetic, and if so how did you improve the accuracy? My reworked recognizer.py file works fine, except for the accuracy. The sample code I based it off of uses a different approach from the original recognizer.py code, so that may be the issue.

Or is there a better speech recognition alternative that you are using with Kinetic and newer versions of ROS?

Thanks,

2018-08-08 01:24:57 -0500 marked best answer actionlib appears to work differently with Kinetic

I was using actionlib.SimpleActionClient('sound_play', SoundRequestAction) under ROS Indigo and it was working fine for doing speech and sound output. Basically I had a python script that subscribed to a topic that received the output from pocketsphinx, parsed the recognized text, executed commands and spoke associated text.

This worked just fine under Indigo, but the same exact code doesn't produce ANY speech or wave file output under Kinetic.

I've determined that if I do the actionlib related processing in the main of the python script that it does work fine, but attempting to do the actionlib sound_play from the context of the callback produces no output. No errors, and sound_play reports that it has spoken or played the wav file.

Has anyone else run into this with Kinetic? There is some more information below.

I had a similar problem with OpenCV with Kinetic. It appears that callbacks may be happening on a different thread and that is breaking things. With the OpenCV issue the imshow() function would not return, no errors and nothing drawn in the window. To resolve that, at least short term, I changed the code to defer the creation of the OpenCV windows so that it happened in the context of the callback function(s). A similar approach with the actionlib processing has so far failed to resolve the issue.

2018-07-17 04:33:29 -0500 received badge  Self-Learner (source)
2018-07-17 04:33:09 -0500 received badge  Student (source)
2018-06-15 17:16:04 -0500 marked best answer Some questions on how people are using servos with ROS and Arduino

I'm just getting started with ROS and ultimately want to do some experimentation with CV and physical object manipulation, but I have miles to go before I'm at that point.

I have been working with MyRobotLab but Oracle Java on my 64bit Linux machine is unstable, even after completely nuking all things Java and doing a clean reinstall. When things work it works reasonably well, but too many hiccups to be efficient.

Also issues on a different machine running Win10 and Java there. So I decided to move to ROS which has a steeper learning curve, but appears to be much more stable.

For starters I have a "head" with two cameras for eyes, servos driving the eyes in X and Y and servos driving the head in X and Y.

I have an Arduino in the head that interfaces to the servos to control them. Currently no position feedback from the servos.

In MyRobotLab the Arduino code allows specifying Acceleration and Velocity values for the servos by using the writeMicroseconds() method to drive the servo motion. I have implemented this and have it interfacing with ROS and I'm able to move the servos and set Velocity and Acceleration just fine.

The other part of the MRL implementation is also to be able to specify Min and Max values for the Servo to prevent driving it past points of physical constraint in the head. For example with the eyes the Y axis movement is quite small so the servo range of motion should be limited.

MRL does this with an actually SetMinMax() method and also with a mapping function that allows more control over the relationship of the input and output Min/Max for the servo(s).

So I wondered what people are doing with ROS to accomplish similar things when using Arduino to control your servos?

Is there some code that exists that manages the MinMax() limits for servos. Or will I need to write my own code.

Right now I'm working towards a small application to drive the head and eye motion in a pre-programmed mode as my next set of tests.

Once I get that working (I already have Python code for doing this with MyRobotLab) then it's on to looking at interfacing with OpenCV to do some initial simple object tracking as I have been able to do with MRL (on the days when Java cooperates:)

If I have missed some suitable code/tutorial/examples could someone point me in the right direction?

And I would be interested to hear if others are doing anything similar with your Arduino based servo control?

Burt

2018-05-26 15:10:47 -0500 received badge  Great Answer (source)
2018-05-17 06:58:45 -0500 received badge  Notable Question (source)
2018-04-24 23:18:36 -0500 received badge  Famous Question (source)
2018-04-18 05:11:26 -0500 received badge  Famous Question (source)
2018-04-18 05:11:26 -0500 received badge  Notable Question (source)
2018-04-16 10:01:44 -0500 received badge  Notable Question (source)
2018-02-14 21:15:36 -0500 received badge  Notable Question (source)
2017-10-31 13:25:09 -0500 received badge  Famous Question (source)
2017-10-07 12:35:05 -0500 received badge  Popular Question (source)
2017-10-04 06:51:24 -0500 received badge  Popular Question (source)
2017-10-02 09:49:12 -0500 received badge  Famous Question (source)
2017-10-01 13:01:35 -0500 commented answer rosserial_arduino with Arduino 1.8.3

I must be blind, don't see a mark as solved option. Do I just Close the question to mark as solved? Thanks,

2017-10-01 12:49:32 -0500 commented answer rosserial_arduino with Arduino 1.8.3

Just had a chance to download and test Arduino IDE 1.8.4 and that does work fine with rosserial so must have been someth

2017-10-01 08:48:28 -0500 commented answer rosserial_arduino with Arduino 1.8.3

Nothing special. As stated Linux Mint 18.1 with Arduino 1.8.3 I notice that you said that it works fine with Arduino 1

2017-10-01 04:07:11 -0500 received badge  Notable Question (source)
2017-09-30 18:18:00 -0500 received badge  Popular Question (source)
2017-08-08 09:54:24 -0500 commented answer pocketsphinx package on kinetic

I'll have to go through the code again to refresh, but I think that it was mainly fixing up recognizer.py I''l do some m

2017-08-08 09:52:19 -0500 commented answer pocketsphinx package on kinetic

I'll have to blow the cobwebs off. I've been off working on other things since I resolved the issue. Basically I had t

2017-07-14 07:04:08 -0500 received badge  Famous Question (source)
2017-07-10 09:36:32 -0500 received badge  Notable Question (source)
2017-07-10 08:46:31 -0500 received badge  Popular Question (source)
2017-06-20 09:47:39 -0500 asked a question rosserial_arduino with Arduino 1.8.3

rosserial_arduino with Arduino 1.8.3 I was going to build the Arduino code on my new installation of Linux Mint 18.1 and

2017-06-18 16:50:17 -0500 answered a question actionlib appears to work differently with Kinetic

What I did to get this working again with Kinetic was to create a new node that wraps the actionlib processing, so in my

2017-06-18 08:53:43 -0500 asked a question actionlib appears to work differently with Kinetic

actionlib appears to work differently with Kinetic I was using actionlib.SimpleActionClient('sound_play', SoundRequestAc

2017-06-16 16:11:20 -0500 answered a question camshift Python example not working with kinetic

This may not be the complete answer to what is going on, but what I did to resolve the issue was to move the creation of

2017-06-15 19:32:07 -0500 commented question camshift Python example not working with kinetic

Last bit of data. Looking closely on Indigo I'm using Python 2.7.6 with Open CV 3.1.0 But on Kinetic it is Python 2.7.

2017-06-15 18:02:56 -0500 commented question camshift Python example not working with kinetic

This problem is why I thought I was not getting the raw_image messages. Everything looks OK as far as the frame image d

2017-06-15 18:01:11 -0500 commented question camshift Python example not working with kinetic

A bit more information. Something appears to have changed between what I have with Indigo and Kinetic. That is in the

2017-06-15 13:15:29 -0500 commented question camshift Python example not working with kinetic

Since this fails with the unmodified ROS by example code here's a github URL to the code. https://github.com/pirobot/rb

2017-06-15 13:15:29 -0500 received badge  Commentator
2017-06-15 13:04:15 -0500 commented question camshift Python example not working with kinetic

Code is not currently hosted anywhere external. I've done some more digging and there is something strange happening.

2017-06-15 12:59:13 -0500 received badge  Notable Question (source)
2017-06-15 11:38:24 -0500 commented question camshift Python example not working with kinetic

But with the sub to input_rgb_image the input_rgb_image topic does not appear in the topic list. I guess I'll have to m

2017-06-15 11:37:04 -0500 commented question camshift Python example not working with kinetic

More info. launch file is doing <remap from="input_rgb_image" to="/camera/rgb/image_raw"/> Code is doing: self.im

2017-06-15 10:18:59 -0500 commented question camshift Python example not working with kinetic

My code is NOT getting /camera/rgb/image_raw topic messages even though I can use rostopic echo to see that the messages

2017-06-15 10:17:30 -0500 commented question camshift Python example not working with kinetic

A little more information. I found a camshift python example (not integrated with ROS) and that works fine using cv2.Vi

2017-06-15 09:47:29 -0500 asked a question camshift Python example not working with kinetic

camshift Python example not working with kinetic Hi, Had the 'ROS by example' camshift example working fine with Indigo

2017-06-13 14:00:16 -0500 commented answer pocketsphinx package on kinetic

I got pulled in a different direction for a day or so, but I hope to compare the two this evening and will let you know.