Home | Tutorials | Wiki | Issues
Ask Your Question

wentz's profile - activity

2019-04-25 09:54:00 -0600 received badge  Nice Answer (source)
2019-02-21 03:30:02 -0600 commented question Why is a robot's link sinking under ground when I assign to it z axis coordinate of 0 at each update

Not easy. Can you post the source code of your model plugin?

2019-02-21 01:36:03 -0600 commented question Why is a robot's link sinking under ground when I assign to it z axis coordinate of 0 at each update

What is the parent link of the link? The documentation says: Set the pose of the entity relative to its parent. So this

2019-02-18 09:37:47 -0600 answered a question transmission towers in Gazebo

The first part of your question "electromagnetic interference of transmission lines" can not be done, because Gazebo is

2019-02-18 09:28:37 -0600 answered a question Display of colored arrows corresponding to the three axes around a robot in Gazebo

In the Gazebo-Gui click on view, then on link frames. So they will be always visible :)

2019-02-18 09:26:59 -0600 commented question SImulation Jackal on Gazebo

This error says that a link you are using does not exist. I think there is a problem with your urdf. Can you update your

2019-01-11 07:00:09 -0600 received badge  Good Question (source)
2018-12-15 02:45:18 -0600 received badge  Nice Answer (source)
2018-12-13 08:47:48 -0600 received badge  Famous Question (source)
2018-11-22 09:55:49 -0600 commented question Exception sending a message

The option --verboss does not exist (gzserver will start anyway but without special output), try it with --verbose, the

2018-11-22 09:36:32 -0600 commented question Whenever I try to open the gazebo it shutdowns immediately and doesnt work

Can you run gazebo with --verbose option ?

2018-11-22 02:42:30 -0600 commented question Gazebo uses exactly half of the cpu

Its basically the same on my system (depending on the other programs i'm using). Guess that's the multi threading used b

2018-11-21 03:59:04 -0600 commented answer X4 laser sensor limited range

Your welcome :), keep in mind that your laser will not detect objects within 1m.

2018-11-21 03:57:24 -0600 commented answer World plugin tutorial, models not in the EntityTree

Your Welcome :) I edited my answer, if it is already working for you, you can ignore it.

2018-11-21 03:56:34 -0600 edited answer World plugin tutorial, models not in the EntityTree

Hi, i did something similar and recognized that i takes some time until the model is inserted correctly. Assuming you u

2018-11-20 06:16:03 -0600 answered a question X4 laser sensor limited range

Looks like the Laser detects a part of the robots collision (thus you can not see the object but the scanner does) I thi

2018-11-20 06:05:18 -0600 marked best answer Unable to InsertModelSDF into World from model plugin (Bug or Error??)

I'm working on a ModelPlugin that spawns a new model and adjusts the position of the model based on the other model's position. To do this i create an sdf::SDF from string and spawn it with the function world->InsertModelSDF(modelSDF). The function looks like this:

std::string sensor_pose_as = pose3dToString(this->link_pose);
    sdf::SDF modelSDF;
    modelSDF.SetFromString(
    "<sdf version='1.6'>\
    <model name='Particle_"+this->parent_save_name_+"'>\
    <link name='link_"+this->particle_link_name_+"'>\
      <pose frame=''>"+sensor_pose_as+"</pose>\
      <gravity>0</gravity>\
      <self_collide>0</self_collide>\
      <kinematic>0</kinematic>\
      <visual name='visual_0'>\
        <pose>"+std::to_string(this->p_range)+" 0 0 0 -0 0</pose>\
        <geometry>\
          <box>\
            <size>"+std::to_string(p_size)+" "+std::to_string(p_size)+" 0.001</size>\
          </box>\
        </geometry>\
        <material>\
          <lighting>0</lighting>\
          <script>\
            <uri>file://media/materials/scripts/gazebo.material</uri>\
            <name>Gazebo/Grey</name>\
          </script>\
        </material>\
        <transparency>"+std::to_string(this->p_transparency_)+"</transparency>\
        <cast_shadows>0</cast_shadows>\
      </visual>\
    </link>\
    <static>0</static>\
    </model>\
    </sdf>");
    sdf::ElementPtr model = modelSDF.Root()->GetElement("model");

    for(int i=1; i<=this->num_particles; i++)
    {
            //do other stuff
    }

    ROS_INFO("Insert Model into World");
    this->model_ = model;
    this->world_->InsertModelSDF(modelSDF);
    //this->parent_->GetWorld()->InsertModelString(modelSDF.ToString());

    common::Time::MSleep(1000);
    ROS_INFO("Setting Pose");
    math::Pose p = math::Pose(this->link_pose);
    this->particle_model_ = this->parent_->GetWorld()->GetModel("Particle_"+this->parent_save_name_);

    ROS_INFO("2 %s",this->particle_model_->GetName().c_str());
    this->particle_model_->SetLinkWorldPose(p, this->particle_link_name_);
    ROS_INFO("Particle Model loaded properly");

I used the exact same function in a SensorPlugin and it worked perfectly. When i debugged the programm this

this->particle_model_ = this->parent_->GetWorld()->GetModel("Particle_"+this->parent_save_name_);

always return NULL. Already checked the modelSDF Variable in a extern file and it's okay. Don't know if its a bug since it worked perfectly in my other Plugin.

2018-11-20 06:05:05 -0600 commented answer Unable to InsertModelSDF into World from model plugin (Bug or Error??)

Thanks, guess this will fix my problem and i learned something new :). Unfortunately i will not be able to check it unti

2018-11-20 04:53:37 -0600 received badge  Notable Question (source)
2018-11-19 07:52:04 -0600 edited question Unable to InsertModelSDF into World from model plugin (Bug or Error??)

Unable to InsertModelSDF into World I'm working on a ModelPlugin that spawns a new model and adjusts the position of the

2018-11-19 07:50:01 -0600 answered a question Actors in ROS Melodic, Gazebo 9

I think to visualize them in RVIZ you will need a plugin to publish the joint_states of the actor and a plugin which bui

2018-11-19 02:53:23 -0600 answered a question High-end system recommendation for vehicle simulations (multi processor vs single processor)

Hard to answer, cause depends on many factors. I suggest you take a look in this paper: Parallel Physics Report

2018-11-19 02:47:16 -0600 answered a question How do I add the Kinect model/sensor to the baxter URDF file?

Take a look in this Repo. Here is an example how one can include sensors in urdf. The sensors are defined in /urdf/sens

2018-11-16 08:26:09 -0600 answered a question Loading a URDF file from a World Plugin (gazebo without ROS)

The Problem is related to the answer of this question In addition: you are using the keyword package: which is related

2018-11-16 08:13:19 -0600 answered a question World plugin tutorial, models not in the EntityTree

Hi, i did something similar and recognized that i takes some time until the model is inserted correctly. Assuming you u

2018-11-16 05:40:54 -0600 received badge  Popular Question (source)
2018-11-13 09:10:45 -0600 asked a question Unable to InsertModelSDF into World from model plugin (Bug or Error??)

Unable to InsertModelSDF into World I'm working on a ModelPlugin that spawns a new model and adjusts the position of the

2018-11-05 04:51:23 -0600 answered a question Problem with transform

You can simply change the fixed frame that is used by rviz. The default frame is map. Look in the documentation of rviz:

2018-11-02 11:18:02 -0600 received badge  Nice Question (source)
2018-11-02 08:47:21 -0600 answered a question Cannot call function "rendering::Scene::VisualAt", undefined symbol?

By the look on your question i assume that you try to call the function like this: VisualPtr vis = rendering::Scene::Vi

2018-11-02 08:32:09 -0600 answered a question why my wheel joint is spin,when I use Joint::setposition to control it?

Because you are also setting a force to the joints causing them to rotate.

2018-11-02 08:30:06 -0600 answered a question What is the mechanism of "OnNewFrame" in CameraPlugin??

As you said its a callback function that is called every time a new frame is rendered. The callback function CameraPlug

2018-11-02 08:22:24 -0600 answered a question Creating a map in Rviz using Gazebo model

You need connect your robot to ROS. These are several steps to be done. you need a joint state plugin that publishes

2018-11-02 08:16:08 -0600 answered a question cmd_vel topic can be manipulated but no messages are received

This has nothing todo with gazebo, but with ROS. Have you tried to echo cmd_vel while operating the quadrocopter with te

2018-11-02 08:07:14 -0600 answered a question When trying to set_velocity_plugin I get make error: class gazebo::physics::World’ has no member named ‘GetPhysicsEngine’

You are using deprecated syntax. Try it with: physics::PhysicsEnginePtr engine = world->Physics();

2018-11-02 07:59:42 -0600 answered a question Get model position from objects ( Position is not exact)

Just a guess (cause i don't know the sdf files of your models), but it seems that you are asking for the model_states in

2018-11-02 05:46:55 -0600 commented question Create a completely new sensor type

Would recommend to look here: https://bitbucket.org/osrf/gazebo/src/f4e51e8f64001beda70615ab8982a7d5a4e65b18/gazebo/sens

2018-11-02 05:46:07 -0600 commented question Create a completely new sensor type

I've just read your other question: http://answers.gazebosim.org/question/20324/unable-to-create-sensor-of-type/ i thin

2018-11-02 05:31:33 -0600 commented question Improving laser scanner simulation: multi echo, material-dependent sensor noise, intensity, etc.

When i'm finished i will post a detailed answer about what i've done.

2018-11-02 05:30:27 -0600 commented question Improving laser scanner simulation: multi echo, material-dependent sensor noise, intensity, etc.

2.2 Then get the Material of the Objects and the corresponding infos from my yaml 3. Compute stuff :P

2018-11-02 05:28:21 -0600 commented question Improving laser scanner simulation: multi echo, material-dependent sensor noise, intensity, etc.

Hi Jared, so i gave up to try it with gpu laser cause ogre is, well lets say not so user friendly like i hoped (and i do

2018-10-30 06:07:44 -0600 received badge  Famous Question (source)
2018-10-05 06:09:49 -0600 received badge  Good Answer (source)
2018-10-05 06:09:49 -0600 received badge  Enlightened (source)
2018-10-02 09:38:27 -0600 received badge  Famous Question (source)
2018-09-13 03:08:36 -0600 commented answer GPU laser sensor reflects transparent glass material

You should update the question and not post an answer since this isn't an answer.

2018-09-13 03:04:34 -0600 received badge  Famous Question (source)
2018-09-11 06:35:14 -0600 received badge  Notable Question (source)
2018-09-06 09:52:17 -0600 commented question Compile by cmake, missing gazeboConfig.cmake or gazebo-config.cmake

Please post your Cmakelist. Usually the problem is there.

2018-09-06 09:48:48 -0600 edited answer GPU laser sensor reflects transparent glass material

So basically the gpu laser will only detect a link's visual. One solution to your problem would be to simply delete the