Home | Tutorials | Wiki | Issues
Ask Your Question

l4ncelot's profile - activity

2017-11-27 14:18:04 -0500 received badge  Famous Question (source)
2017-11-27 14:18:04 -0500 received badge  Notable Question (source)
2017-10-06 06:15:43 -0500 received badge  Famous Question (source)
2017-10-06 06:15:43 -0500 received badge  Notable Question (source)
2017-09-22 00:50:59 -0500 received badge  Famous Question (source)
2017-09-21 03:32:35 -0500 commented answer How to delete model path

Is there e.g. some way to reset everything to default values without reinstalling the whole simulator?

2017-09-21 01:26:42 -0500 received badge  Notable Question (source)
2017-09-21 00:39:49 -0500 commented answer How to delete model path

So I edited .gazebo/gui.ini file so that it contains only the model path I want. File /usr/share/gazebo-7/setup.sh is fi

2017-09-21 00:30:48 -0500 received badge  Popular Question (source)
2017-09-20 16:53:17 -0500 received badge  Student (source)
2017-09-20 00:39:10 -0500 commented question How to delete model path

Using roslaunch gazebo_ros empty_world.launch.

2017-09-20 00:38:53 -0500 commented question How to delete model path

Using roslaunch gazebo_ros empty_world.launch.

2017-09-20 00:38:03 -0500 commented question How to delete model path

Using roslaunch gazebo_ros empty_world.launch.

2017-09-19 08:20:19 -0500 asked a question How to delete model path

How to delete model path Hi, I have ROS project with some models. I export the path through package.xml file using this

2017-07-03 18:49:06 -0500 received badge  Popular Question (source)
2017-06-30 09:39:26 -0500 asked a question Gazebo won't shutdown after killing gazebo node

Gazebo won't shutdown after killing gazebo node Hi, I've encountered weird problem with gazebo. I used to be able to ki

2017-06-29 03:55:10 -0500 received badge  Famous Question (source)
2017-04-19 06:44:28 -0500 received badge  Supporter (source)
2017-04-19 06:44:26 -0500 received badge  Scholar (source)
2017-04-19 05:19:11 -0500 commented answer How to edit grid size using system plugin

Oh sorry, there's already CMakeLists file in your example. I didn't see that :).

2017-04-19 05:13:59 -0500 commented answer How to edit grid size using system plugin

Thank you. I've encountered one problem while writing the GUIplugin. How do I compile the plugin in ROS package? When I

2017-04-19 04:07:33 -0500 received badge  Popular Question (source)
2017-04-19 04:07:03 -0500 received badge  Notable Question (source)
2017-04-19 04:07:03 -0500 received badge  Popular Question (source)
2017-04-19 03:30:21 -0500 received badge  Enthusiast
2017-04-18 13:51:37 -0500 commented answer How to edit grid size using system plugin

Is there a way to check whether I'm in server or client scene through system plugin? What's GUI plugin, I've never heard

2017-04-18 11:42:53 -0500 asked a question How to edit grid size using system plugin

Hi,

I would like to edit grid size. I've written simple system plugin to do this, but it's not working for some reason.

When I print out the cell count from grid 0 I get 2000 as expected. But in Gazebo there's no change to default grid size. It's still grid consisting of 20x20 cells.

Here's the code:

#include <gazebo/rendering/rendering.hh>
#include <gazebo/gazebo.hh>
#include <ros/ros.h>

namespace gazebo{
    class GridPlugin : public SystemPlugin {
    public:
        void Load(int /*_argc*/, char ** /*_argv*/){
            this->connections_.push_back(event::Events::ConnectRender(boost::bind(&GridPlugin::Update, this)));
        }
    private:
        void Update(){
            rendering::ScenePtr scene = rendering::get_scene();

            if(!scene || !scene->Initialized()){
                return;
            }

            auto grid = scene->GetGrid(0);
            if(!grid) return;
            grid->SetCellCount(2000);

            ROS_INFO("cell count: %d", scene->GetGrid(0)->GetCellCount());
        }

    private:
        std::vector<event::ConnectionPtr> connections_;
    };

    GZ_REGISTER_SYSTEM_PLUGIN(GridPlugin)
}
2017-04-11 14:27:53 -0500 received badge  Famous Question (source)
2016-11-28 09:33:05 -0500 asked a question Gazebo crushes while using px4 gimbal_controller_plugin

Hi,

I've been playing with gazebo_gimbal_controller_plugin from px4 firmware but I've encountered strange Gazebo crash. It's thrown while using this plugin, because when I comment the plugin from my .sdf robot model, everything works fine.

I've tried reinstalling Gazebo, Ogre libraries, libpng12-dev library all either from prebuilded packages or from source. But the error stays the same... I really have no idea what's going on and how to fix this...

My system:
   Ubuntu version 14.04 LTS
   Gazebo 7.4
   Latest version of px4 firmware
   Ogre libraries versions 1.8 and 1.9 (both are required for Gazebo I guess)

Here is the error message using gdb:

terminate called after throwing an instance of 'Ogre::ItemIdentityException'
  what():  OGRE EXCEPTION(5:ItemIdentityException): Can not find codec for 'png' image format.
There are no formats supported (no codecs registered). in Codec::getCodec at /build/buildd/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreCodec.cpp (line 69)

Program received signal SIGABRT, Aborted.
0x00007ffff68b2c37 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.

And using backtrack:

#0  0x00007ffff68b2c37 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff68b6028 in __GI_abort () at abort.c:89
#2  0x00007ffff71bd535 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff71bb6d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff71bb703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff71bb922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff042eea0 in Ogre::Codec::getCodec(std::string const&) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#7  0x00007ffff0227a90 in Ogre::Image::load(Ogre::SharedPtr<Ogre::DataStream>&, std::string const&) () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#8  0x00007ffff0392b72 in Ogre::SceneManager::initShadowVolumeMaterials() ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#9  0x00007ffff038ac4f in Ogre::SceneManager::_renderScene(Ogre::Camera*, Ogre::Viewport*, bool) () from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#10 0x00007ffff0409e6b in Ogre::Camera::_renderScene(Ogre::Viewport*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#11 0x00007ffff035a6ee in Ogre::RenderTarget::_updateViewport(Ogre::Viewport*, bool) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff035a6ab in Ogre::RenderTarget::_updateAutoUpdatedViewports(bool) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#13 0x00007ffff035a25e in Ogre::RenderTarget::updateImpl() ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0
#14 0x00007ffff035a854 in Ogre::RenderTarget::update(bool) ()
   from /usr/lib/x86_64-linux-gnu/libOgreMain.so.1.9.0

#15 0x00007ffff0843d7c in gazebo::rendering::Camera::Render (this=0x1332530, 
    _force=_force@entry=false) at /tmp/gazebo/gazebo/rendering/Camera.cc:425
#16 0x00007ffff65e34d7 in gazebo::sensors::CameraSensor::Render (this=0x1a4e700)
    at /tmp/gazebo/gazebo/sensors/CameraSensor.cc:190
#17 0x00007ffff6617c05 in operator() (this=<optimized out>)
    at /usr/include/boost/function/function_template.hpp:767
#18 gazebo::event::EventT<void ()>::Signal() (
    this=0x7ffff7947a00 <gazebo::event::Events::render>)
    at /tmp ...
(more)
2016-11-14 00:46:07 -0500 received badge  Notable Question (source)
2016-11-12 02:59:40 -0500 commented question Get a pose of nested model relative to it's parent model

Well I'm using tf to send transformation to ROS. I've used plugin to get the transformation and then send it through tf, becase the model can't send transformation itself.

2016-11-11 01:54:31 -0500 received badge  Popular Question (source)
2016-11-09 12:50:28 -0500 asked a question Get a pose of nested model relative to it's parent model

Hi,

I've been experimenting with Gazebo plugins recently and I've encountered problem while trying to publish tf transformations from Gazebo to ROS.

I have sdf model of quadcopter with nested model of camera attached to the quadcopter with joint. I then created model plugin where I'm trying to get position of my nested camera model relative to quadcopter model by GetRelativePose() function documented here.

But it doesn't work and it seems like I'm getting world coordinates instead of relative ones. Also when I try GetParent()->GetName() function it gives me my quadcopter's name which is fine. But when I do the same on model with GetParentModel()->GetName() it gives me my camera's model name which is weird to me...

Any idea what's happening and what am I missing?

Thank you.

2016-11-09 11:39:51 -0500 received badge  Organizer (source)