ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
753 stars 770 forks source link

Video Plugin Crashes Gzserver (Gazebo9) #788

Open arixrobotics opened 6 years ago

arixrobotics commented 6 years ago

Hello all,

It seems that the video plugin libgazebo_ros_video.so is crashing gzserver everytime I load it in ROS Kinetic + Gazebo 9.

This is the code snippet:

<gazebo reference="screen">
<visual>
  <plugin name="screen_video_controller" filename="libgazebo_ros_video.so">
    <height>600</height>
    <width>1024</width>
    <topicName>/robot/head_display</topicName>
    <robotNamespace>/robot</robotNamespace>
  </plugin>
</visual>
</gazebo>

If I try to load this model, I'll get:

...
[ INFO] [1533119655.853751756]: GazeboRosVideo (gzclient, ns = /robot) has started
Segmentation fault (core dumped)
[gazebo_gui-3] process has died [pid 12932, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/arif/.ros/log/6157ef48-9576-11e8-90e1-6c71d97cbaff/gazebo_gui-3.log].
log file: /home/arif/.ros/log/6157ef48-9576-11e8-90e1-6c71d97cbaff/gazebo_gui-3*.log

But if I comment out that part, it loads ok (without that video display, of course).

I've seen this issue, but it seems like a different case https://github.com/ros-simulation/gazebo_ros_pkgs/issues/354

Can anyone help?

kev-the-dev commented 6 years ago

Thanks for the report. I'm curious if this is related to #646. Are you able to test this with gazebo7 + Kinetic?

arixrobotics commented 6 years ago

I've tried on Kinetic + Gazebo 7, it works fine.

I'll try to check on the cv2/3 clash and see if that's the issue.

On Fri, Aug 3, 2018, 12:55 AM Kevin Allen notifications@github.com wrote:

Thanks for the report. I'm curious if this is related to #646 https://github.com/ros-simulation/gazebo_ros_pkgs/issues/646. Are you able to test this with gazebo7 + Kinetic?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ros-simulation/gazebo_ros_pkgs/issues/788#issuecomment-409995419, or mute the thread https://github.com/notifications/unsubscribe-auth/AZnmr99vO4D7O8azuzMGku1Mpt8QjyuZks5uMy7kgaJpZM4VrgP1 .

shiveshkhaitan commented 5 years ago

Building gazebo_ros_video and cv_bridge from source works fine.

gaopinghai commented 2 years ago

Hi, can you provide me a model which use libgazebo_ros_video.so as plugins? I tried very hard but failed to build a model which can display videos from rostopic. Please give me a demo model, thanks a lot!!!