Problem witth RosInterface on Ubuntu 16.04

Typically: "How do I... ", "How can I... " questions
akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

Hi,

I have ROS Kinetic and got the RosInterface loaded but when I try to run the scene rosInterfaceTopicPublisherAndSubscriber.ttt it lists /image and not /visionSensorData so the command given in the tutorial "rosrun image_view image_view image:=/visionSensorData" doesn't work. Also when I run the scene controlTypeExamples.ttt the red robot doesn't move at all. I can't seem to understand why this is happening. I am new to ROS and v-rep so really need some help.

Thanks in advance,
Akhil

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: Problem witth RosInterface on Ubuntu 16.04

Post by coppelia »

Hello Akhil,

are you sure the RosInterface is loaded? (check the terminal window)
Also, are there any error messages in the lower part of the V-REP window when running those scenes?

Cheers

akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Re: Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

I am not getting any error message for those scenes.

This is what I get when I start vrep

Code: Select all

Using the default Lua library.
Loaded the video compression library.
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
QSplitter::setCollapsible: Index 0 out of range
Simulator launched.
Plugin 'MeshCalc': loading...
Plugin 'MeshCalc': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Bwf': loading...
Plugin 'Bwf': load succeeded.
Plugin 'Collada': loading...
Plugin 'Collada': load succeeded.
Plugin 'ConvexDecompose': loading...
Plugin 'ConvexDecompose': load succeeded.
Plugin 'CustomUI': loading...
Plugin 'CustomUI': load succeeded.
Plugin 'DynamicsBullet-2-78': loading...
Plugin 'DynamicsBullet-2-78': load succeeded.
Plugin 'DynamicsBullet-2-83': loading...
Plugin 'DynamicsBullet-2-83': load succeeded.
Plugin 'DynamicsNewton': loading...
Plugin 'DynamicsNewton': load succeeded.
Plugin 'DynamicsOde': loading...
Plugin 'DynamicsOde': load succeeded.
Plugin 'DynamicsVortex': loading...
Plugin 'DynamicsVortex': load succeeded.
Plugin 'ExternalRenderer': loading...
Plugin 'ExternalRenderer': load succeeded.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'LuaRemoteApiClient': loading...
Plugin 'LuaRemoteApiClient': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'OMPL': loading...
Plugin 'OMPL': load succeeded.
Plugin 'OpenMesh': loading...
Plugin 'OpenMesh': load succeeded.
Plugin 'PovRay': loading...
Plugin 'PovRay': load succeeded.
Plugin 'Qhull': loading...
Plugin 'Qhull': load succeeded.
Plugin 'RRS1': loading...
Plugin 'RRS1': load succeeded.
Plugin 'ReflexxesTypeII': loading...
Plugin 'ReflexxesTypeII': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'RosInterface': loading...
Plugin 'RosInterface': load succeeded.
Plugin 'RosSkeleton': loading...
Plugin 'RosSkeleton': load succeeded.
Plugin 'SDF': loading...
Plugin 'SDF': load succeeded.
Plugin 'SimpleFilter': loading...
Plugin 'SimpleFilter': load succeeded.
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf-a': loading...
Plugin 'Urdf-a': load succeeded.
Plugin 'Urdf': loading...
Plugin 'Urdf': load succeeded.
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Using the 'MeshCalc' plugin.
Checking for an updated V-REP version...
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
Failed checking whether this V-REP version is up-to-date.
Please visit http://www.coppeliarobotics.com to verify
that you are running the last V-REP version.
Last edited by akhil27 on 16 Jul 2017, 08:11, edited 2 times in total.

akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Re: Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

I also tried installing the new beta version of v-rep I saw you suggested on another post and then using the ros packages in v-rep folder to compile the RosInterface. I get warnings but it builds and still gives me a non-moving red bot (https://ibb.co/c2Ngua).

The catkin build gives me

Code: Select all

[build] Found '4' packages in 0.0 seconds.                                     
[build] Updating package table.                                                
Starting  >>> catkin_tools_prebuild                                            
Finished  <<< catkin_tools_prebuild                    [ 1.9 seconds ]         
Starting  >>> ros_bubble_rob2                                                  
Starting  >>> vrep_ros_interface                                               
Starting  >>> vrep_skeleton_msg_and_srv                                        
_______________________________________________________________________________
Warnings   << vrep_ros_interface:cmake /home/akhil/quickstart_ws/logs/vrep_ros_interface/build.cmake.000.log
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'brics_actuator' but neither
  'brics_actuator_INCLUDE_DIRS' nor 'brics_actuator_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'control_msgs' but neither
  'control_msgs_INCLUDE_DIRS' nor 'control_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'diagnostic_msgs' but neither
  'diagnostic_msgs_INCLUDE_DIRS' nor 'diagnostic_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'map_msgs' but neither 'map_msgs_INCLUDE_DIRS'
  nor 'map_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'nav_msgs' but neither 'nav_msgs_INCLUDE_DIRS'
  nor 'nav_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'pcl_msgs' but neither 'pcl_msgs_INCLUDE_DIRS'
  nor 'pcl_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'shape_msgs' but neither
  'shape_msgs_INCLUDE_DIRS' nor 'shape_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'tf2_geometry_msgs' but neither
  'tf2_geometry_msgs_INCLUDE_DIRS' nor 'tf2_geometry_msgs_LIBRARIES' is
  defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'tf2_sensor_msgs' but neither
  'tf2_sensor_msgs_INCLUDE_DIRS' nor 'tf2_sensor_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'trajectory_msgs' but neither
  'trajectory_msgs_INCLUDE_DIRS' nor 'trajectory_msgs_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'visualization_msgs' but neither
  'visualization_msgs_INCLUDE_DIRS' nor 'visualization_msgs_LIBRARIES' is
  defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:12 (catkin_package)


cd /home/akhil/quickstart_ws/build/vrep_ros_interface; catkin build --get-env vrep_ros_interface | catkin env -si  /usr/bin/cmake /home/akhil/quickstart_ws/src/vrep_ros_interface --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/akhil/quickstart_ws/devel/.private/vrep_ros_interface -DCMAKE_INSTALL_PREFIX=/home/akhil/quickstart_ws/install; cd -
...............................................................................
Finished  <<< vrep_skeleton_msg_and_srv                [ 4.1 seconds ]         
Starting  >>> vrep_plugin_skeleton                                             
Finished  <<< ros_bubble_rob2                          [ 5.6 seconds ]         
_______________________________________________________________________________
Warnings   << vrep_plugin_skeleton:cmake /home/akhil/quickstart_ws/logs/vrep_plugin_skeleton/build.cmake.000.log
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:166 (message):
  catkin_package() DEPENDS on 'roslib' but neither 'roslib_INCLUDE_DIRS' nor
  'roslib_LIBRARIES' is defined.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
  CMakeLists.txt:8 (catkin_package)


cd /home/akhil/quickstart_ws/build/vrep_plugin_skeleton; catkin build --get-env vrep_plugin_skeleton | catkin env -si  /usr/bin/cmake /home/akhil/quickstart_ws/src/vrep_plugin_skeleton --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/akhil/quickstart_ws/devel/.private/vrep_plugin_skeleton -DCMAKE_INSTALL_PREFIX=/home/akhil/quickstart_ws/install; cd -
...............................................................................
Finished  <<< vrep_plugin_skeleton                     [ 5.8 seconds ]         
_______________________________________________________________________________
Warnings   << vrep_ros_interface:make /home/akhil/quickstart_ws/logs/vrep_ros_interface/build.make.000.log
Warning at xsl:stylesheet on line 2 column 80 of callbacks.xsl:
  Running an XSLT 10 stylesheet with an XSLT 20 processor
cd /home/akhil/quickstart_ws/build/vrep_ros_interface; catkin build --get-env vrep_ros_interface | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Finished  <<< vrep_ros_interface                       [ 53.7 seconds ]        
[build] Summary: All 5 packages succeeded!                                     
[build]   Ignored:   None.                                                     
[build]   Warnings:  2 packages succeeded with warnings.                       
[build]   Abandoned: None.                                                     
[build]   Failed:    None.                                                     
[build] Runtime: 55.8 seconds total.                                           
[build] Note: Workspace packages have changed, please re-source setup files to use them.


akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Re: Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

Someone please help me. I need it for a project I need to submit in a few days.

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: Problem witth RosInterface on Ubuntu 16.04

Post by coppelia »

If you look at the child script attached to the red robot, you will see that it tries to launch rosBubbleRob2, which is an executable which should be located in the same folder as v_rep.sh. Do you have that executable? And is it launched?

Cheers

akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Re: Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

There is an executable called rosBubbleRob2 in the V-Rep root folder with vrep.sh. I saw that this error message comes up in the terminal when I run the scene, sorry for not noticing that earlier:
./rosBubbleRob2: symbol lookup error: ./rosBubbleRob2: undefined symbol: _ZN3ros4initERiPPcRKSsj

What could be going wrong? Also, is it okay to ignore the warnings I got with catkin build I posted previously?

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: Problem witth RosInterface on Ubuntu 16.04

Post by coppelia »

Did you recompile that executable? If not, try to recompile it and see if it runs.

Probably you haven't installed ROS properly, otherwise you shouldn't have all those warning messages (except for the first message I guess).

Cheers

akhil27
Posts: 7
Joined: 10 Jul 2017, 12:50

Re: Problem witth RosInterface on Ubuntu 16.04

Post by akhil27 »

I recompiled it and it works now. Will reinstall ros and try to get rid of the warnings. Sorry for the trouble.

Thanks

Hams Ansari
Posts: 5
Joined: 27 Aug 2019, 09:15

Re: Problem witth RosInterface on Ubuntu 16.04

Post by Hams Ansari »

Hi

I have been also getting the same error when i run my scene.

./rosBubbleRob2: symbol lookup error: ./rosBubbleRob2: undefined symbol: _ZN3ros4initERiPPcRKSsj

In the post you said to recompile and see if it runs but i am introduced to another problem

rosBubbleRob2.cpp:19:21: fatal error: ros/ros.h: No such file or directory
#include <ros/ros.h>
^
compilation terminated.

In someother posts related to the problem above.
People have included this " include_directories(${catkin_INCLUDE_DIRS})"
in the cmakelist

But still i have error.
And during my catkin build process i did not encounter any errors or warnings.

Post Reply