Skip to content

Commit

Permalink
Import streamingSharedControl.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Dec 3, 2023
1 parent d80cbc4 commit b0cf3fd
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ enable_testing()
add_subdirectory(libraries)
#add_subdirectory(programs)
#add_subdirectory(tests)
#add_subdirectory(share)
add_subdirectory(share)
add_subdirectory(doc)
#add_subdirectory(examples/cpp)

Expand Down
2 changes: 2 additions & 0 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarp_install(FILES applications/streamingSharedControl.xml
DESTINATION ${AMOR-YARP-DEVICES_APPLICATIONS_INSTALL_DIR}/streamingDeviceController)
79 changes: 79 additions & 0 deletions share/applications/streamingSharedControl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<application>
<name>haarDetection2D shared control app</name>

<module>
<name>opencv_grabber</name>
<parameters>--name /frameGrabber2D --camera 1</parameters>
<node>localhost</node>
<deployer>yarpdev</deployer>
</module>

<module>
<name>haarDetection2D</name>
<parameters>--xmlCascade haarcascade_cocacola_can.xml</parameters>
<node>localhost</node>
</module>

<module>
<name>haarDetection2D</name>
<parameters>--xmlCascade haarcascade_frontalface_alt.xml</parameters>
<node>localhost</node>
</module>

<module>
<name>yarpview</name>
<parameters>--name /haarDetection2D/yarpview/img:i --compact</parameters>
<node>localhost</node>
</module>

<module>
<name>amorSim</name>
<node>localhost</node>
</module>

<module>
<name>AmorCartesianControl</name>
<parameters>--name /amor/CartesianControl --kinematics /usr/local/share/amor/contexts/kinematics/armKinematics.ini</parameters>
<node>localhost</node>
<deployer>yarpdev</deployer>
</module>

<module>
<name>BasicCartesianControl</name>
<parameters>--name /amorSim/CartesianControl --from /usr/local/share/amor/contexts/kinematics/armKinematics.ini --local /BasicCartesianControl/amorSim --remote /amorRobot/amorManipulator</parameters>
<node>localhost</node>
<deployer>yarpdev</deployer>
</module>

<module>
<name>SpaceNavigator</name>
<parameters>--period 5 --name /spacenavigator --channels 8</parameters>
<node>localhost</node>
<deployer>yarpdev</deployer>
</module>

<module>
<name>streamingDeviceController</name>
<parameters>--streamingDevice SpaceNavigator --remoteCartesian /amor/CartesianControl --SpaceNavigator::remote /spacenavigator</parameters>
</module>

<module>
<name>streamingDeviceController</name>
<parameters>--streamingDevice SpaceNavigator --remoteCartesian /amorSim/CartesianControl --SpaceNavigator::remote /spacenavigator</parameters>
</module>

<module>
<name>streamingDeviceController</name>
<parameters>--streamingDevice SpaceNavigator --remoteCartesian /amor/CartesianControl --SpaceNavigator::remote /spacenavigator --remoteCentroid /haarDetection2D/state:o --centroidPermTime 1.0</parameters>
</module>

<module>
<name>streamingDeviceController</name>
<parameters>--streamingDevice SpaceNavigator --remoteCartesian /amorSim/CartesianControl --SpaceNavigator::remote /spacenavigator --remoteCentroid /haarDetection2D/state:o --centroidPermTime 1.0</parameters>
</module>

<connection>
<from>/haarDetection2D/img:o</from>
<to>/haarDetection2D/yarpview/img:i</to>
</connection>
</application>

0 comments on commit b0cf3fd

Please sign in to comment.