Vision_visp tutorial failed on raspberry

asked 2020-01-18 09:15:06 -0500

koraze gravatar image

Hi, I hope ROS community can help me

I use ROS version 1 on a Raspberry Pi 4 with 4Go with Raspian Buster OS. I want to use vision_visp on it for objects tracking.

I follow your tutorial : http://wiki.ros.org/vision_visp, but because I use raspbian, I had to compile by myself all dependencies included :

- open_cv 3.4.9 software (compiled inside python3 virtual environment)
- visp 3.2.0 software
- geometry2 ros package
- image_common ros package
- vision_opencv ros package
- image_pipeline ros package

Sadly, when I try the tutorial with this command "roslaunch visp_tracker tutorial.launch", I got errors. I found no solutions on the internet. Could you help to make this tutorial command work ? Ask me if you want more details. Below you can see main errors messages I got when I try the tutorial command :

[ WARN] [1579217775.782628551]: the camera_prefix parameter does not exist.
This may mean that:
- the tracker is not launched,
- the tracker and viewer are not running in the same namespace.

Traceback (most recent call last):
  File "/home/pi/aurbot_catkin_ws/src/vision_visp/visp_tracker/scripts/tf_localization.py", line 21, in <module>
    import tf
  File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/__init__.py", line 30, in <module>
    from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
  File "/home/pi/aurbot_catkin_ws/devel/lib/python3/dist-packages/tf2_ros/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 38, in <module>
  File "/home/pi/aurbot_catkin_ws/devel/lib/python3/dist-packages/tf2_py/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 38, in <module>
ImportError: /home/pi/aurbot_catkin_ws/devel/lib/python3/dist-packages/tf2_py/_tf2.so: undefined symbol: PyModule_Create2

terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to load the model "package://visp_tracker/models/laas-box/laas-box"
Do you use resource_retriever syntax?
I.e. replace /my/model/path by file:///my/model/path

[tracker_mbt_client-4] process has died [pid 15484, exit code -6, cmd /home/pi/aurbot_catkin_ws/devel/lib/visp_tracker/visp_tracker_client __name:=tracker_mbt_client __log:=/home/pi/.ros/log/f83e1a4a-38b8-11ea-8de9-dca63244e15f/tracker_mbt_client-4.log].
log file: /home/pi/.ros/log/f83e1a4a-38b8-11ea-8de9-dca63244e15f/tracker_mbt_client-4*.log
[tf_localization-7] process has died [pid 15491, exit code 1, cmd /home/pi/aurbot_catkin_ws/src/vision_visp/visp_tracker/scripts/tf_localization.py __name:=tf_localization __log:=/home/pi/.ros/log/f83e1a4a-38b8-11ea-8de9-dca63244e15f/tf_localization-7.log].
log file: /home/pi/.ros/log/f83e1a4a-38b8-11ea-8de9-dca63244e15f/tf_localization-7*.log
edit retag flag offensive close merge delete

Comments

Hey! I'm trying to do the same thing. I have Raspbian Buster running on a RPI 4 with ROS Melodic installed. However, I haven't been able to install the vision_visp package. I keep getting the message that there is no definition of the other dependency packages for the OS version [buster]. Did you manage to do it?

GuillermoHerrera gravatar image GuillermoHerrera  ( 2020-03-03 03:36:38 -0500 )edit