Ok, It work fine with only this XML character string : 
<model:SimpleSolid></model:SimpleSolid>
but crash with :
<model:Pioneer2DX></model:Pioneer2DX>

It is normal?
It is possible to instanciate a new robot during simulation?


Nate Koenig-2 wrote:
> 
> Hello,
> 
> The Factory model maintains no physical characteristics, but instead
> allows the user to dynamically create models at runtime. A model is
> instantiated by passing an XML character string to a Factory model.
> The character string uses the same model format as the .world files.
> Note that the string should only contain the model description, and no
> other tags. The XML string is passed into Gazebo through the
> gz_factory interface.
> 
> So, you need a factory in your world file:
> 
> <model:Factory>
>   <id>factory0</id>
> </model:Factory>
> 
> And then you need to access gz_factory through the libgazebo
> interface. When you want a new model to appear in the world, just set
> the "string" in gz_factory to contain the description of the model.
> 
> -nate
> 
> On 1/19/07, laflaf3d <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>> I want to write Gazebo client (with libgazebo) that can randomely
>> instanciate a robot by using factory.
>> But, after search a lot on web, I don't find an example at all!
>>
>> Have someone show me an example to use gz_factory to dynamically create
>> models?
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-use-gz_factory-tf3040637.html#a8451647
>> Sent from the playerstage-gazebo mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Playerstage-gazebo mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>>
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
> 
> 

-- 
View this message in context: 
http://www.nabble.com/gz_factory-doesn%27t-work-tf3040637.html#a8649229
Sent from the playerstage-gazebo mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to