Guidance UART ROS
Opened this issue · 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
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.
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 imshow is an OpenCV function. You are supposed to have OpenCV installed.
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
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.
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!
did you source this workspace in your bashrc?
I have sourced and succeed !Thank you!
Did you operate guidance-sdk-ros on vware10?I can't link it to usb of vware.
@ym19920319
well, I suggest that you should use a real Linux
Ok! I will try to do it .thank you!
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.