Gazebo | Ignition | Community
Ask Your Question

user1928's profile - activity

2023-02-28 01:11:09 -0500 received badge  Popular Question (source)
2022-10-14 07:17:26 -0500 received badge  Famous Question (source)
2022-10-14 07:17:26 -0500 received badge  Notable Question (source)
2022-09-23 08:06:23 -0500 received badge  Famous Question (source)
2022-03-10 12:45:48 -0500 received badge  Notable Question (source)
2022-03-10 07:12:44 -0500 received badge  Popular Question (source)
2022-03-09 08:37:42 -0500 edited question Reorient the local axes of a model wrt world frame

Reorient the axes of a model wrt world frame I have inserted the camera provided by osrf into the gazebo simulation worl

2022-03-09 08:32:06 -0500 asked a question Reorient the local axes of a model wrt world frame

Reorient the axes of a model wrt world frame I have inserted the camera provided by osrf into the gazebo simulation worl

2022-03-02 10:34:13 -0500 edited question Camera in air keeps drifting

Camera in air keeps drifting I've added a camera to the simulation. Its gravity is disabled & it also doesn't touch

2022-03-02 10:32:20 -0500 asked a question Camera in air keeps drifting

Camera in air keeps drifting I've added a camera to the simulation. Its gravity is disabled & it also doesn't touch

2022-03-02 10:08:13 -0500 asked a question How to change pose of a static model

How to change pose of a static model I have a model (whose <static> tag is set to 1 in sdf) inserted into the simu

2022-03-02 01:44:28 -0500 marked best answer Mismatch between pose of a model in sdf & simulation

Hello,

I want to use a camera in Gazebo & used the model from https://github.com/osrf/gazebo_models. I changed the pose of the camera in its sdf file as follows (& saved it):

 <pose>0 0 0.5 0 1.5708 1.5708</pose>

But, if I launch gazebo & insert the camera model from GUI & check its properties, I see different roll, pitch & yaw: image description

What is happening here?

P.S: 1) I'm using Gazebo11 on Ubuntu 20.04

P.S: 2) This is my camera's sdf file(I'm using a plugin to read camera feed in ROS):

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="camera">
    <pose>0 0 0.5 0 1.5708 1.5708</pose>
    <link name="link">
      <gravity>0</gravity>
      <inertial>
        <mass>0.1</mass>
        <inertia>
          <ixx>1.000166667</ixx>
          <iyy>1.000166667</iyy>
          <izz>1.000166667</izz>
        </inertia>
      </inertial>
      <collision name="collision">
        <geometry>
          <box>
            <size>0.1 0.1 0.1</size>
          </box>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <box>
            <size>0.1 0.1 0.1</size>
          </box>
        </geometry>
      </visual>
      <sensor name="camera" type="camera">
        <camera>
          <horizontal_fov>1.047</horizontal_fov>
          <image>
            <width>320</width>
            <height>240</height>
          </image>
          <clip>
            <near>0.1</near>
            <far>100</far>
          </clip>
        </camera>
        <always_on>1</always_on>
        <update_rate>30</update_rate>
        <visualize>true</visualize>
        <plugin name="camera_controller" filename="libgazebo_ros_camera.so">
          <alwaysOn>true</alwaysOn>
          <updateRate>0.0</updateRate>
          <cameraName>free_camera</cameraName>
          <imageTopicName>/free_camera/image_raw</imageTopicName>
          <cameraInfoTopicName>/free_camera/camera_info</cameraInfoTopicName>
          <frameName>camera_link</frameName>
          <hackBaseline>0.07</hackBaseline>
          <distortionK1>0.0</distortionK1>
          <distortionK2>0.0</distortionK2>
          <distortionK3>0.0</distortionK3>
          <distortionT1>0.0</distortionT1>
          <distortionT2>0.0</distortionT2>
        </plugin>
      </sensor>
    </link>
  </model>
</sdf>
2022-03-02 01:43:48 -0500 answered a question Mismatch between pose of a model in sdf & simulation

Never mind. Both are equivalent representations. Follow the rule: First roll around x, then pitch around y and finally

2022-03-02 00:21:08 -0500 edited question Mismatch between pose of a model in sdf & simulation

Mismatch between pose of a model in sdf & simulation Hello, I want to use a camera in Gazebo & used the model f

2022-03-02 00:21:08 -0500 received badge  Editor (source)
2022-02-28 06:49:04 -0500 received badge  Organizer (source)
2022-02-28 06:44:47 -0500 asked a question Mismatch between pose of a model in sdf & simulation

Mismatch between pose of a model in sdf & simulation Hello, I want to use a camera in Gazebo & used the model f

2022-02-23 04:11:11 -0500 received badge  Popular Question (source)
2022-02-21 05:07:47 -0500 commented question move a camera along spline

commenting for better reach

2022-02-21 04:45:24 -0500 commented answer problem adding an image as texture to an object

I tried generating the collada (.dae) file with blender but that wasn't required. The one generated with the online conv

2022-02-21 04:45:02 -0500 commented answer problem adding an image as texture to an object

I tried generating the collada (.dae) file with blender but that wasn't required. The one generated with the online gene

2022-02-21 04:43:03 -0500 received badge  Supporter (source)
2022-02-21 04:42:55 -0500 marked best answer problem adding an image as texture to an object

I want to display an image in the gazebo environment. Looking at a few answers suggested that I've to add an object & lay the image as texture over the object.

I followed what's suggested in the answers of this post, but no avail. Then I created a collada mesh as suggested by this tutorial. Still no luck. The object gets inserted like a grey plane as shown below. image description

What I did until now:

1) I created a directory for the model with the name ~/.gazebo/models/aruco_marker. This is how the folder looks like:

image description

2) contents of model.sdf:

<?xml version="1.0"?> <sdf version="1.4"> <model name="aruco_marker">   <static>true</static>
    <link name="link">
      <collision name="collision">
        <geometry>
          <plane>
            <normal>0 0 1</normal>
            <size>10 10</size>
          </plane>
        </geometry>
        <surface>
          <friction>
            <ode>
              <mu>100</mu>
              <mu2>50</mu2>
            </ode>
          </friction>
        </surface>
      </collision>
      <visual name="visual">
        <cast_shadows>false</cast_shadows>
        <geometry>
          <plane>
            <normal>0 0 1</normal>
            <size>10 10</size>    </plane>    <mesh>
        <uri>model://aruco_marker/materials/textures/4x4_1000-25_side50.dae</uri>
          </mesh>
        </geometry>
        <material>
          <script>
            <uri>model://aruco_marker/materials/scripts/aruco_marker.material</uri>
            <name>MyGroundPlane/Image</name>
          </script>
        </material>
      </visual>
    </link>   </model> </sdf>

3) contents of model.config

<model>
    <name>Aruco Marker</name>
    <version>1.0</version>
    <sdf version="1.4">model.sdf</sdf>
    <description>
        My textured ground plane.
    </description>
</model>

4) contents of materials/scripts/aruco_marker.material

material ArucoMarker/Image
{
  technique
  {
    pass
    {
      ambient 0.5 0.5 0.5 1.0
      diffuse 1.0 1.0 1.0 1.0
      specular 0.0 0.0 0.0 1.0 0.5
      texture_unit
      {
        texture 4x4_1000-25_side50.jpg
        filtering trilinear
      }
    }
  }
}

5) This is the .jpg file: image description

I generated a .dae file for it using an online converter

Any help is greatly appreciated, thanks!

2022-02-21 04:42:55 -0500 received badge  Scholar (source)
2022-02-21 04:42:49 -0500 commented answer problem adding an image as texture to an object

Thanks, it was helpful. I had another bug in my code. As can be seen in my post above, the name tag within the material

2022-02-18 11:06:32 -0500 asked a question move a camera along spline

move a camera along spline Hello, I want to capture a static scene from various angles & positions by moving the ca

2022-02-18 11:06:30 -0500 asked a question problem adding an image as texture to an object

problem adding an image as texture to an object I want to display an image in the gazebo environment. Looking at a few a