Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 700

Warning: Invalid argument supplied for foreach() in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 701

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 705

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /home/project-web/playerstage/htdocs/wiki/includes/MagicWord.php on line 722
Adding a driver to Player - The Player Project

Adding a driver to Player

From The Player Project

Jump to: navigation, search
 
Line 8: Line 8:
[http://playerstage.sourceforge.net/doc/Player-cvs/player/group__tutorial__migrating__drivers.html Migrating from Player 1.6 to Player 2.0]
[http://playerstage.sourceforge.net/doc/Player-cvs/player/group__tutorial__migrating__drivers.html Migrating from Player 1.6 to Player 2.0]
 +
[[Writing_a_Player_plugin_driver| How to write a player plugin driver]]
 +
[http://www.control.aau.dk/~tb/wiki/index.php/Developing_a_plug-in_driver_for_Player#Main.28.29 Very good tutorial that describes in detail how to write a new driver] 
----
----
 +
''Although this example is for a "roboteq" driver it should work for other drivers.''
-
''Although these are specific to the "roboteq" driver they should work for other drivers. "..." in a code block means lines were omitted for clarity.''
+
''"..." in a code block means lines were omitted for clarity.''
o.k., I have created a patch file for the changes made to the Player source tree in order to add my new Roboteq driver. Only glitch is that the patch does not include the two new files or the new directory:
o.k., I have created a patch file for the changes made to the Player source tree in order to add my new Roboteq driver. Only glitch is that the patch does not include the two new files or the new directory:
Line 26: Line 29:
here is the process:
here is the process:
-
1. cvs checkout of Player source (a cvs checkout and build is its own process; check Player FAQs for more info)
+
1. cvs checkout of Player source (a cvs checkout and build is its own process; check  
 +
[http://playerstage.sourceforge.net/wiki/Basic_FAQ Player FAQs]
 +
for more info)
2. drop the directory for the new driver ("roboteq" -- position2d) in "player/server/drivers/position/" with its appropriately edited roboteq.cc (removed the extern "C" Extra stuff for building a shared object, otherwise same as the plugin driver).
2. drop the directory for the new driver ("roboteq" -- position2d) in "player/server/drivers/position/" with its appropriately edited roboteq.cc (removed the extern "C" Extra stuff for building a shared object, otherwise same as the plugin driver).
Line 90: Line 95:
  cvs diff -u > registernewdriver.patch
  cvs diff -u > registernewdriver.patch
-
to make a patch file of any existing files that have changed
+
to make a patch file of any existing files that have changed. Check out the patch file to see if its in good shape. Mine had a bunch of ? marks at the top, listing new files cvs did not know about because they had not been added, so I cleaned it up a bit. Otherwise it should show the changes in all the files that were modified (above).
10. cvs did not allow me to add any files to the repository without having write-privileges:
10. cvs did not allow me to add any files to the repository without having write-privileges:
Line 98: Line 103:
so I just uploaded a tar.gz of the new directory with the patch file to patch tracker - don't know if there is a better way.
so I just uploaded a tar.gz of the new directory with the patch file to patch tracker - don't know if there is a better way.
 +
 +
[[Category:Documentation]]
 +
[[Category:Tutorials]]

Latest revision as of 23:41, 30 January 2011

Personal tools