From b0cf3fda5bb288aa6e669d2cdfa81d7ac3f415fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Sun, 3 Dec 2023 20:53:45 +0100 Subject: [PATCH] Import streamingSharedControl.xml --- CMakeLists.txt | 2 +- share/CMakeLists.txt | 2 + share/applications/streamingSharedControl.xml | 79 +++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 share/CMakeLists.txt create mode 100644 share/applications/streamingSharedControl.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 0576422..b06bffb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt new file mode 100644 index 0000000..1161377 --- /dev/null +++ b/share/CMakeLists.txt @@ -0,0 +1,2 @@ +yarp_install(FILES applications/streamingSharedControl.xml + DESTINATION ${AMOR-YARP-DEVICES_APPLICATIONS_INSTALL_DIR}/streamingDeviceController) \ No newline at end of file diff --git a/share/applications/streamingSharedControl.xml b/share/applications/streamingSharedControl.xml new file mode 100644 index 0000000..01881ef --- /dev/null +++ b/share/applications/streamingSharedControl.xml @@ -0,0 +1,79 @@ + + haarDetection2D shared control app + + + opencv_grabber + --name /frameGrabber2D --camera 1 + localhost + yarpdev + + + + haarDetection2D + --xmlCascade haarcascade_cocacola_can.xml + localhost + + + + haarDetection2D + --xmlCascade haarcascade_frontalface_alt.xml + localhost + + + + yarpview + --name /haarDetection2D/yarpview/img:i --compact + localhost + + + + amorSim + localhost + + + + AmorCartesianControl + --name /amor/CartesianControl --kinematics /usr/local/share/amor/contexts/kinematics/armKinematics.ini + localhost + yarpdev + + + + BasicCartesianControl + --name /amorSim/CartesianControl --from /usr/local/share/amor/contexts/kinematics/armKinematics.ini --local /BasicCartesianControl/amorSim --remote /amorRobot/amorManipulator + localhost + yarpdev + + + + SpaceNavigator + --period 5 --name /spacenavigator --channels 8 + localhost + yarpdev + + + + streamingDeviceController + --streamingDevice SpaceNavigator --remoteCartesian /amor/CartesianControl --SpaceNavigator::remote /spacenavigator + + + + streamingDeviceController + --streamingDevice SpaceNavigator --remoteCartesian /amorSim/CartesianControl --SpaceNavigator::remote /spacenavigator + + + + streamingDeviceController + --streamingDevice SpaceNavigator --remoteCartesian /amor/CartesianControl --SpaceNavigator::remote /spacenavigator --remoteCentroid /haarDetection2D/state:o --centroidPermTime 1.0 + + + + streamingDeviceController + --streamingDevice SpaceNavigator --remoteCartesian /amorSim/CartesianControl --SpaceNavigator::remote /spacenavigator --remoteCentroid /haarDetection2D/state:o --centroidPermTime 1.0 + + + + /haarDetection2D/img:o + /haarDetection2D/yarpview/img:i + +