ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Model can't be fixed the orientation

asked 2016-03-19 07:40:19 -0600

Hello, ROS community!

I was learning the tutorial about the placing models in some orders and I wanted to implement it in my project. I took some models from 3D google repository and corrected them by following this tutorial.

My problem is the model (white_shelf2) can't be rotated on 90 degrees. I tried differently to fix the numbers of orientation (yaw exactly) in the world file (below it attached), but I cant still understand why the number were not published in Gazebo.

 <?xml version="1.0" ?> 
 <sdf version="1.5"> 
 <world name="default">

<include> 
<uri>model://ground_plane</uri> 
</include>

<include> 
<uri>model://sun</uri> 
</include>

<include> 
<uri>model://market_layout</uri> 
<name>market layout</name> 
<pose>0.107915 -0.228911 0.00 0.00 0.00 0.00</pose> 
</include>

<include> 
<uri>model://kassa</uri> 
<name>kassa</name> 
<pose>-4.712210 0.153002 -0.000002 0.000003 0.00 -1.573301</pose> 
</include>

<population name="white_shelves_population1"> 
<model name="white_shelf1"> 
<include>   
<static>true</static>   
<uri>model://white_shelves</uri> 
</include> 
</model> 
<pose>0.5 -7.4 0 0 0 0</pose> <!--pose of all shelves together -->  
<box>
<size>14 0.5 3</size> <!-- <size> is size of all shelves; all shelves will be in the size together -->
</box> 
<model_count>14</model_count> 
<distribution> 
<type>linear-x</type> <!-- models place along x-axis --> 
</distribution> 
</population>

<population name="white_shelves_population2"> 
<model name="white_shelf2"> 
<include> 
<static>true</static> 
<uri>model://white_shelves</uri> 
</include> 
</model> 
<pose>7.313923 1.442630 0.0 0.0 0.0 1.623000</pose> 
<box> 
<size>0.5 1.0 3.0</size> 
</box> 
<model_count>1</model_count> 
<distribution> 
<type>linear-y</type> 
</distribution> 
</population>
</world> 
</sdf>

This is screenshots:

image description

image description

In GUI, I placed the model in right position for getting the pose coordinates. Because, the "save" function doesn't work there, so I fixed the coordinates in my world file.

Jade, Ubuntu 14.04, Gazebo 5.1.0

Thank you in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-28 04:31:43 -0600

The problem was decided in Gazebo answers. The link is here.

In case, I duplicate my question in Gazebo and ROS answers, Do I destroy the community rules?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-19 07:40:19 -0600

Seen: 1,075 times

Last updated: Mar 28 '16