Giter Site home page Giter Site logo

Comments (2)

meyerj avatar meyerj commented on June 30, 2024

I think the reason is that the default variant spawned from indoor_slam_gazebo.launch only has a standard RGB camera installed which uses the default gazebo_ros_camera plugin from https://github.com/ros-simulation/gazebo_ros_pkgs and does not produce depth images. The demo uses a 2D laser range finder only.

In order to spawn a quadrotor with a depth camera, you should look at the various launch file and robot description options in hector_quadrotor_gazebo or create your own drone model using urdf and appropriate Gazebo plugins. Probably spawn_quadrotor_with_kinect.launch is more or less what you want (without all the SLAM overhead):

roslaunch hector_gazebo_worlds willow_garage.launch &
roslaunch hector_quadrotor_gazebo spawn_quadrotor_with_kinect.launch &

Typically you would assemble your own application-specific launch file from the examples in the repository or other sources.

Not sure why rviz offers a selection of compression methods for depth images for the /camera/image topic, but the image_transport interface is quite generic and can contain different types of images, so the subscriber cannot know. The error message clearly states that the published format is rgb8, so no depth information.

Please consider to use http://answers.gazebosim.org/ for future questions which are not bug reports or pull requests.

from hector_quadrotor.

Alvarodamat avatar Alvarodamat commented on June 30, 2024

Oh, thank you very much! Now I got the model running. And sorry about this thread here, if I need help again, I will head to Answers Gazebo. Thanks again!

from hector_quadrotor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.