Gazebo | Ignition | Community
Ask Your Question

Morloth's profile - activity

2013-05-03 16:13:29 -0500 received badge  Taxonomist
2013-04-29 07:21:44 -0500 received badge  Famous Question (source)
2013-04-14 07:58:49 -0500 received badge  Student (source)
2013-03-14 02:56:50 -0500 received badge  Notable Question (source)
2013-03-11 06:09:55 -0500 received badge  Popular Question (source)
2013-03-08 08:08:50 -0500 commented answer Problem: Depth camera plugin does not show any coloured images.

The problem seems to be the class imagetransport::ImageTransport. In simulatorgazebo/gazeboplugin/gazeboroscamerautils.cpp we advertise the image service with:

this->imagepub = this->itnode->advertise( this->imagetopicname,1, boost::bind( &GazeboRosCameraUtils::ImageConnect,this), boost::bind( &GazeboRosCameraUtils::ImageDisconnect,this), ros::VoidPtr(), &this->cameraqueue);

However, the ImageConnect and ImageDisconnect are never called. So the variable image_co

2013-03-07 08:37:20 -0500 asked a question Problem: Depth camera plugin does not show any coloured images.

Hi everybody,

I'm currently trying to attach a camera to a robot. While that works fine, it seems that I can only see the depth images it produces and not the RGB images it should (I think?) also produce. Below is the SDF code I use to define the sensor:

<sensor name="downward_cam_camera_sensor" type="depth">
  <pose>0 0 0 0 1.57079632679 0</pose>
  <update_rate>20</update_rate>
  <always_on>true</always_on>
  <camera>
    <horizontal_fov>1.745</horizontal_fov>
    <image>
      <width>640</width>
      <height>480</height>
      <format>R8G8B8</format>
    </image>
    <clip>
      <near>0.01</near>
      <far>100</far>
    </clip>
  </camera>

  <plugin name="downward_cam_camera_controller" filename="libgazebo_ros_depth_camera.so">
    <cameraName>downward_cam</cameraName>
    <alwaysOn>true</alwaysOn>
    <updateRate>20</updateRate>
    <imageTopicName>camera/image</imageTopicName>
    <depthImageTopicName>camera/depth_image</depthImageTopicName>
    <cameraInfoTopicName>camera/camera_info</cameraInfoTopicName>
    <depthCameraInfoTopicName>camera/depth_camera_info</depthCameraInfoTopicName>
    <depthImageCameraInfoTopicName>camera/depth_image_camera_info</deptImageCameraInfoTopicName>
    <frameName>downward_cam_optical_frame</frameName>
    <interface:camera name="downward_cam_camera_iface"/>
  </plugin>
</sensor>

When I check out the depth image with the command:

rosrun image_view image_view image:=/downward_cam/camera/depth_image

then I see a grey scale image which is fine. But when I check the other topic:

rosrun image_view image_view image:=/downward_cam/camera/image

Nothing appears. I checked if that topic exists, which is the case. But when I check if any messages are coming though:

rostopic echo /downward_cam/camera/image

no messages appear...

Does anybody have an idea how I can extract coloured images from the camera? Am I using the wrong plugin, are my parameters wrong?

Any help is appreciated, thanks!

Bram

2013-02-16 15:49:49 -0500 received badge  Famous Question (source)
2013-02-07 11:43:18 -0500 received badge  Teacher (source)
2013-02-07 11:43:18 -0500 received badge  Self-Learner (source)
2013-02-07 11:43:03 -0500 received badge  Notable Question (source)
2013-02-06 06:06:03 -0500 commented answer Cannot connect to Connection Manager.

Great! That worked, thank you very much.

2013-02-05 17:40:38 -0500 received badge  Popular Question (source)
2013-02-05 12:17:02 -0500 answered a question Cannot connect to Connection Manager.

Here you go, hope it helps.

bram@bram-progbak:~/gazebo_workspace/models/roomba$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:22:4d:51:ba:9d  
          inet addr:137.73.9.44  Bcast:137.73.9.255  Mask:255.255.254.0
          inet6 addr: fe80::222:4dff:fe51:ba9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5160510 errors:2 dropped:0 overruns:0 frame:1
          TX packets:1044009 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3180319676 (3.1 GB)  TX bytes:125889629 (125.8 MB)
          Interrupt:20 Memory:fe600000-fe620000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:7990940 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7990940 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6936528882 (6.9 GB)  TX bytes:6936528882 (6.9 GB)


bram@bram-progbak:~/gazebo_workspace/models/roomba$ hostname
bram-progbak

bram@bram-progbak:~/gazebo_workspace/models/roomba$ domainname
(none)

bram@bram-progbak:~/gazebo_workspace/models/roomba$ cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   bram-progbak

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
2013-02-05 09:49:47 -0500 commented question Cannot connect to Connection Manager.

Just installed version Gazebo 1.3 which does work. So I'm not sure what the problem is with version 1.4.

2013-02-05 09:08:31 -0500 received badge  Editor (source)
2013-02-05 09:02:17 -0500 commented question Cannot connect to Connection Manager.

It seems that the problem is that when I run gzmaster it segfaults. (updated original post).

2013-02-05 08:16:58 -0500 asked a question Cannot connect to Connection Manager.

Hello,

I have followed the installation guide here: http://gazebosim.org/wiki/1.4/install and installed Gazebo using the pre-compiled binaries for Ubuntu Linux 12.04 (precise). However, when I execute the following command:

bram@bram-progbak:~$ gazebo

I get the following output:

Gazebo multi-robot simulator, version 1.4.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 1.4.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master.Msg Waiting for master...................................................................................................

And the dots go on forever. When I hit CTRL-C the following messages is displayed: Error [ConnectionManager.cc:89] Connection Manager is not running

I have also tried to use the Gazebo package which is integrated with ROS but the same happens there. The following environmental variables have been defined:

GAZEBO_MASTER_URI=http://localhost:11345

GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

GAZEBO_PLUGIN_PATH=/usr/lib/gazebo-1.4/plugins

GAZEBO_RESOURCE_PATH=/usr/share/gazebo-1.4:/usr/share/gazebo_models

Here is the tracelog when I try to run gzmaster:

bram@bram-progbak:~/builds/gazebo-1.4.0/build$ gdb gzmaster
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/local/bin/gzmaster...done.
(gdb) run
Starting program: /usr/local/bin/gzmaster 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeceb9700 (LWP 5329)]
Gazebo multi-robot simulator, version 1.4.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org


Program received signal SIGSEGV, Segmentation fault.
gazebo::Master::Init (this=0x0, _port=11345) at /home/bram/builds/gazebo-1.4.0/gazebo/Master.cc:65
65      this->connection->Listen(_port, boost::bind(&Master::OnAccept, this, _1));
(gdb) wher
#0  gazebo::Master::Init (this=0x0, _port=11345) at /home/bram/builds/gazebo-1.4.0/gazebo/Master.cc:65
#1  0x000000000040f39b in main () at /home/bram/builds/gazebo-1.4.0/gazebo/master_main.cc:58
(gdb)

Hope you guys can help me get the master server to run. Thanks!

Bram