-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2608 from drdanz/robotinterface_param
robotinterface: Allow replacing values from command line
- Loading branch information
Showing
13 changed files
with
313 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
robotinterface_param {#master} | ||
-------------------- | ||
|
||
## Libraries | ||
|
||
### `robotinterface` | ||
|
||
#### `XMLReader` | ||
|
||
* The `getRobotFromFile` and `getRobotFromString` now accept a `Searchable` that | ||
is used to replace params with the attribute `extern-name`. | ||
The signatures are now: | ||
``` | ||
XMLReaderResult getRobotFromFile(const std::string& filename, | ||
const yarp::os::Searchable& config = yarp::os::Property()); | ||
XMLReaderResult getRobotFromString(const std::string& filename, | ||
const yarp::os::Searchable& config = yarp::os::Property()); | ||
``` | ||
|
||
* DTD version is now 3.1. | ||
|
||
## Tools | ||
|
||
### `yarprobotinterface` | ||
|
||
* Arguments taken from the command line are now handled and used to replace | ||
parameters marked with the attribute `extern-name`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/yarprobotinterface/tests/fakeFrameGrabber/fakeFrameGrabber.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.1//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.1.dtd"> | ||
|
||
<devices robot="grabber_left" build="3"> | ||
<device name="grabber_left" type="fakeFrameGrabber"> | ||
<param name="fakeFrameGrabber_rpc_port"> /fakeFrameGrabber_left/rpc </param> | ||
<param name="width">360</param> | ||
<param name="height">240</param> | ||
<param name="mode" extern-name="mode">grid</param> | ||
</device> | ||
|
||
<device name="grabber_right" type="fakeFrameGrabber"> | ||
<param name="fakeFrameGrabber_rpc_port"> /fakeFrameGrabber_right/rpc </param> | ||
<param name="width">360</param> | ||
<param name="height">240</param> | ||
<param name="mode" extern-name="mode">grid</param> | ||
</device> | ||
|
||
<device name="wrapper_left" type="grabberDual"> <!-- frameGrabber_nws_yarp --> | ||
<param name="name">/left</param> | ||
<param name="period">33</param> | ||
<action phase="startup" level="10" type="attach"> | ||
<param name="device"> grabber_left </param> | ||
</action> | ||
<action phase="shutdown" level="5" type="detach" /> | ||
</device> | ||
|
||
<device name="wrapper_right" type="grabberDual">--> <!-- frameGrabber_nws_yarp --> | ||
<param name="name">/right</param> | ||
<param name="period">33</param> | ||
<action phase="startup" level="10" type="attach"> | ||
<param name="device"> grabber_right </param> | ||
</action> | ||
<action phase="shutdown" level="5" type="detach" /> | ||
</device> | ||
</devices> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 1.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV1.0.dtd"> | ||
<!DOCTYPE robot PUBLIC "-//YARP//DTD yarprobotinterface 3.1//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.1.dtd"> | ||
|
||
<robot name="grabber" build="2" portprefix="grabber"> | ||
<devices file="fakeFrameGrabber.xml" /> | ||
<robot name="grabber" build="3" portprefix="grabber" xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<xi:include href="./fakeFrameGrabber.xml" /> | ||
</robot> |
21 changes: 0 additions & 21 deletions
21
src/yarprobotinterface/tests/fakeFrameGrabber/test_grabber.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.