Guidance-SDK-ROS icon indicating copy to clipboard operation
Guidance-SDK-ROS copied to clipboard

Guidance UART ROS

Open TreLosOyk opened this issue 9 years ago • 12 comments

Hello, I'm able to setup guidance to work with ROS over USB, but I'm not able or even sure whether it is compatibe with ROS over UART

TreLosOyk avatar Jul 07 '16 10:07 TreLosOyk

The UART example should also work with ROS with little modification, although we don't recommend this approach, since the UART interface is designed for very simple MCU's.

tangketan avatar Jul 15 '16 03:07 tangketan

hello. I used Guidance -SDK-ROS to work ,but there are several errors for example :/home/exbot/catkin_ws/src/Guidance-SDK-ROS/src/GuidanceNode.cpp: In function ‘int my_callback(int, int, char*)’: /home/exbot/catkin_ws/src/Guidance-SDK-ROS/src/GuidanceNode.cpp:85:42: error: ‘imshow’ was not declared in this scope imshow("left", g_greyscale_image_left); ^ /home/exbot/catkin_ws/src/Guidance-SDK-ROS/src/GuidanceNode.cpp:96:43: error: ‘imshow’ was not declared in this scope imshow("right", g_greyscale_image_right); I tried to all ways what I could to cope it ,but failed to it .Could you help me with it ,thanks!

ym19920319 avatar Nov 15 '16 14:11 ym19920319

@ym19920319 imshow is an OpenCV function. You are supposed to have OpenCV installed.

tangketan avatar Nov 15 '16 15:11 tangketan

I have opencv installed ,but now,there still several errors : processing catkin package: 'guidance' -- ==> add_subdirectory(Guidance-SDK-ROS) CMake Error at /opt/ros/indigo/share/cv_bridge/cmake/cv_bridgeConfig.cmake:106 (message): Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/opt/ros/indigo//usr/include/opencv'. Ask the maintainer 'Vincent Rabaud [email protected]' to fix it. Call Stack (most recent call first): /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package) Guidance-SDK-ROS/CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! See also "/home/exbot/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/exbot/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed I know it is a problem of path and I tried to cope with it ,but failed to it ,could you help me with it? thank you1

ym19920319 avatar Nov 16 '16 03:11 ym19920319

Hi @ym19920319

CMake Error at /opt/ros/indigo/share/cv_bridge/cmake/cv_bridgeConfig.cmake:106 (message): Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/opt/ros/indigo//usr/include/opencv'.

It seems that you have installed opencv into other location, therefore the cv_bridge cannot find the opencv header file.

There are many similar issues here: https://www.google.com.hk/search?q=It+does+neither+exist+as+an+absolute+directory+nor+in+%27%2Fopt%2Fros%2Findigo%2F%2Fusr%2Finclude%2Fopencv%27.+Ask+the+maintainer+%27Vincent+Rabaud&oq=It+does+neither+exist+as+an+absolute+directory+nor+in+%27%2Fopt%2Fros%2Findigo%2F%2Fusr%2Finclude%2Fopencv%27.+Ask+the+maintainer+%27Vincent+Rabaud&aqs=chrome..69i57j69i64&sourceid=chrome&ie=UTF-8

lanyusea avatar Nov 16 '16 03:11 lanyusea

thank you !Because cv bridge only support for opencv 2.4.8,then I updated the cv bridge and succeeded .but I continued to do that: cd ~/catkin_ws catkin_make rosrun guidance guidanceNode rosrun guidance guidanceNodeTest

The third and fourth step appeared followed errors: exbot@ubuntu:~/catkin_ws$ rosrun guidance guidanceNode [rospack] Error: package 'guidance' not found Why!

ym19920319 avatar Nov 16 '16 03:11 ym19920319

did you source this workspace in your bashrc?

lanyusea avatar Nov 16 '16 04:11 lanyusea

I have sourced and succeed !Thank you!

ym19920319 avatar Nov 16 '16 05:11 ym19920319

Did you operate guidance-sdk-ros on vware10?I can't link it to usb of vware.

ym19920319 avatar Nov 16 '16 05:11 ym19920319

@ym19920319 well, I suggest that you should use a real Linux

lanyusea avatar Nov 16 '16 05:11 lanyusea

Ok! I will try to do it .thank you!

ym19920319 avatar Nov 16 '16 05:11 ym19920319

Hey @TreLosOyk I've uploaded a ROS node for UART connection, here SenseLabTUC/guidance_uart.

It has the same topics morphology as this Guidance-SDK-ROS USB based repository, excepting the image raw data. No image data can be transfered by the UART connection, because of the small bandwidth.

jimcha21 avatar Oct 06 '17 09:10 jimcha21