Gazebo | Ignition | Community
Ask Your Question
0

Why is the model "head" kept falling down through the another model "chassis"?

asked 2021-08-05 12:47:29 -0500

kakcalu13 gravatar image

the code is here:

  <include>
  <uri>model://head</uri>
  <pose>0.090 0 0.16 0 0 0</pose>
  <name>head</name>
  </include>
  <joint name="head_joint" type="fixed">
  <child>head</child>
  <parent>chassis</parent>
  </joint>
  </model>

my chassis code is:

        <link name='chassis'>
        <pose>0 0 .1 0 0 0</pose>

        <collision name='collision'>
          <geometry>
            <box>
              <size>0.2159 0.1524 0.10795</size>
            </box>
          </geometry>
        </collision>

        <visual name='visual'>
          <geometry>
            <box>
              <size>0.2159 0.1524 0.10795</size>
            </box>
          </geometry>
        </visual>
      </link>

I don't get how it just go through the model. Did I used the wrong one or what? I linked head as a child with chassis as parent.

I wanted to attach head on the chassis firmly without letting it go through the chassis. Do you have any idea what to put?

I'm using Gazebo11

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-08-05 15:13:02 -0500

kakcalu13 gravatar image

I no longer call other model. I added them in the same file and it's working now.

It's a glitch, apparently.

SDF to SDF

Closing this one

edit flag offensive delete link more

Comments

If you run gazebo --verbose, you might get an error message indicating what went wrong. My guess is the joint <child> needs to be a link, but you gave it the name of a model.

azeey gravatar imageazeey ( 2021-08-12 11:16:27 -0500 )edit

Thank you for your reply! Yeah, --verbose said there was no model exist. Not sure why, but it's whatever now since create the "head" within the same file worked.

kakcalu13 gravatar imagekakcalu13 ( 2021-08-12 11:23:32 -0500 )edit

Question Tools

Stats

Asked: 2021-08-05 12:47:29 -0500

Seen: 59 times

Last updated: Aug 05 '21