Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance UART ROS #22

Open
TreLosOyk opened this issue Jul 7, 2016 · 12 comments
Open

Guidance UART ROS #22

TreLosOyk opened this issue Jul 7, 2016 · 12 comments

Comments

@TreLosOyk
Copy link

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

@tangketan
Copy link
Contributor

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.

@ym19920319
Copy link

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!

@tangketan
Copy link
Contributor

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

@ym19920319
Copy link

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
vincent.rabaud@gmail.com' 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

@lanyusea
Copy link
Member

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

@ym19920319
Copy link

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!

@lanyusea
Copy link
Member

did you source this workspace in your bashrc?

@ym19920319
Copy link

I have sourced and succeed !Thank you!

@ym19920319
Copy link

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

@lanyusea
Copy link
Member

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

@ym19920319
Copy link

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

@jimcha21
Copy link

jimcha21 commented Oct 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants