Re: How to make a Player driver

anterma <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
I can't make the driver. Am I asking how to include my driver in Player?


Rich Mattes-2 wrote:
> 
> Are you asking how to use the driver?  First run "make" and build the
> driver, then write a configuration file to load your driver, then run
> Player
> with your configuration file.
> 
> Rich
> 
> -----Original Message-----
> From: anterma [mailto:[email protected]] 
> Sent: Thursday, July 01, 2010 7:20 AM
> To: [email protected]
> Subject: Re: [Playerstage-developers] How to make a Player driver
> 
> 
> Thanks a lot, it was the N, sometimes I'm so silly...
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/laptop/player/player-3.0.1/server/drivers/mixed/mydriver
> Now, how can I include mydriver and use it in Player?What is next?
> 
> Thanks
> 
> 
> Rich Mattes-2 wrote:
>> 
>> 
>> 
>> If you're setting "CMAKE_MODULE_PATHN" then of course you're having
>> problems. 
>> There's an extra N on the end.  Also, the # sign before SET will comment
>> the
>> line out and force it not to be evaluated.  Verify that there's a file
>> called
>> UsePlayerPlugin.cmake at /usr/local/share/cmake/Modules, then put your
>> sources
>> in their own directory outside of the Player tree with this
>> CMakeLists.txt:
>> 
>> CMAKE_MINIMUM_REQUIRED (VERSION 2.4 FATAL_ERROR)
>> PROJECT(mbase)
>> SET(CMAKE_MODULE_PATH "/usr/local/share/cmake/Modules")
>> INCLUDE(UsePlayerPlugin)
>> PLAYER_ADD_PLUGIN_DRIVER (mbase SOURCES mbase.cc motorpacket.cc packet.cc
>> robot_params.cc)
>> 
>> Then create a "build" directory within in your source directory, change
>> into it, and run
>> "cmake .." like you would if you were building Player normally.
>> 
>> Rich
>> 
>> 
>> 
>> On 6/29/2010 6:22 AM, anterma wrote:
>>> Ok, thanks
>>> I have problems writting my own CMakeLists.txt. Could you show me
>>> another
>>> example of a plugin driver? Could you show me another example of a
>>> CMakeLists.txt of a plugin driver?
>>>
>>> Thanks
>>>
>>>
>>>
>>> Geoffrey Biggs-3 wrote:
>>>> No, I'm afraid that's very wrong.
>>>>
>>>> If you are making a plugin driver, do not place it in the Player source
>>>> tree. It should also not be a part of the Player build system. You
>>>> compile your driver completely separately.
>>>>
>>>> Look at the installed example plugin driver. See how it includes a
>>>> CMakeList.txt file. You are able to compile just that driver all on its
>>>> own. Copy that file for your own driver and modify it to suit.
>>>>
>>>> Geoff
>>>>
>>>> On 29/06/10 17:24, anterma wrote:
>>>>> 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
>>>>>>
>>>>>>
>>>>
> ----------------------------------------------------------------------------
> --
>>>> 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-tp28841441p29044538.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
> _______________________________________________
> 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-tp28841441p29046111.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.