Re: How to make a Player driver

anterma <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Thanks.
 
I've changed my CMakeLists.txt
(player-3.0.1/server/drivers/mixed/mydriver/CMakeLists.txt) and use  #SET
(CMAKE_MODULE_PATHN "/usr/local/share/cmake/Modules"), but I have the same
error again.
Now I've added 'ADD_SUBDIRECTORY (mydriver)' in
player-3.0.1/server/drivers/mixed/CMakeLists.txt and
player-3.0.1/server/drivers/mixed/mydriver/CMakeLists.txt is:
PLAYERDRIVER_OPTION(mbase build_mbase ON)
PLAYERDRIVER_ADD_DRIVER (mbase build_mbase CFLAGS "-DUSE_METEOR" SOURCES
mbase.cc motorpacket.cc packet.cc robot_params.cc)
Now I can compile player, do you think this is right?

Thanks




Rich Mattes-2 wrote:
> 
> Oh dear, what a bad copy/paste oversight.  I've corrected the article and
> made a note of how to find the correct module path.
> 
> Rich
> 
> -----Original Message-----
> From: Geoff Biggs [mailto:[email protected]] 
> Sent: Monday, June 28, 2010 7:57 AM
> To: [email protected]
> Subject: Re: [Playerstage-developers] How to make a Player driver
> 
> When you copy a sample CMakeLists.txt, use the ones that are installed 
> into $prefix/share/. The ones in the Player source are written in such a 
> way that they get customised for your system when you install Player. 
> You can't use them directly.
> 
> Geoff
> 
> On 28/06/10 20:02, anterma wrote:
>>
>> Hi,
>> I'm using
>> http://psurobotics.org/wiki/index.php?title=Writing_a_Player_Plugin
> should,
>> but I have problems writing my CMakeLists.txt. This is my  CMakeLists.txt
>> file:
>>
>> CMAKE_MINIMUM_REQUIRED (VERSION 2.4 FATAL_ERROR)
>> PROJECT (MYDRIVER_PLAYER_DRIVER)
>> #Include ths Cmake module to get most of the settings need to build
>> SET (CMAKE_MODULE_PATHN "@CMAKE_INSTALL_PREFIX@share/cmake/Modules")
>> INCLUDE (UsePlayerPlugin)
>> PLAYER_ADD_PLUGIN_DRIVER (mydriver SOURCES mydriver.cc motorpacket.cc
>> packet.cc robot_params.cc)
>>
>> Then I use "cmake ." and this is the result:
>> CMake Error at CMakeLists.txt:6 (INCLUDE):
>>    include could not find load file:
>>
>>      UsePlayerPlugin
>>
>>
>> CMake Error at CMakeLists.txt:8 (PLAYER_ADD_PLUGIN_DRIVER):
>>    Unknown CMake command "PLAYER_ADD_PLUGIN_DRIVER".
>>
>>
>> -- Configuring incomplete, errors occurred!
>>
>> What am I doing wrong? Somebody can help me?
>>
>> Thanks
>>
>>
>>
>>
>> Rich Mattes-2 wrote:
>>>
>>> http://psurobotics.org/wiki/index.php?title=Writing_a_Player_Plugin
> should
>>> help.  You can also look at
>>> http://playerstage.sourceforge.net/wiki/Tutorials and see if any of the
>>> other tutorials help you out.
>>>
>>> Rich
>>>
>>> -----Original Message-----
>>> From: anterma [mailto:[email protected]]
>>> Sent: Thursday, June 10, 2010 6:48 AM
>>> To: [email protected]
>>> Subject: [Playerstage-developers] How to make a Player driver
>>>
>>>
>>> I'm looking for a manual about how to write a Player driver, but is
>>> empty
>>>
> http://playerstage.sourceforge.net/doc/Player-2.1.0/player/group__tutorial__
>>> plugins.html
>>> Somebody can help me?
>>> Thanks
>>> --
>>> View this message in context:
>>>
> http://old.nabble.com/How-to-make-a-Player-driver-tp28841441p28841441.html
>>> Sent from the playerstage-developers mailing list archive at Nabble.com.
>>>
>>>
>>>
> ----------------------------------------------------------------------------
>>> --
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Playerstage-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
>>>
>>>
>>>
> ----------------------------------------------------------------------------
> --
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Playerstage-developers mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
>>>
>>>
>>
> 
> ----------------------------------------------------------------------------
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Playerstage-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Playerstage-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-developers
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-make-a-Player-driver-tp28841441p29021319.html
Sent from the playerstage-developers mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.