Skip to content

Commit

Permalink
CartesianControl.h now using yarp::dev::ReturnValue
Browse files Browse the repository at this point in the history
added device FakeCartesianControl
added test fakeCartesianControl
  • Loading branch information
randaz81 committed Feb 23, 2025
1 parent cc466b2 commit 08c5a5a
Show file tree
Hide file tree
Showing 12 changed files with 1,017 additions and 81 deletions.
1 change: 1 addition & 0 deletions src/devices/fake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

add_subdirectory(fakeDepthCamera)
add_subdirectory(fakebot)
add_subdirectory(fakeCartesianControl)
add_subdirectory(fakeChatBotDevice)
add_subdirectory(fakeMotionControl)
add_subdirectory(fakeMotionControlMicro)
Expand Down
55 changes: 55 additions & 0 deletions src/devices/fake/fakeCartesianControl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

if (YARP_COMPILE_ALL_FAKE_DEVICES)
set(ENABLE_yarpmod_fakeCartesianControl ON CACHE BOOL "" FORCE)
endif()

yarp_prepare_plugin(fakeCartesianControl
CATEGORY device
TYPE FakeCartesianControl
INCLUDE FakeCartesianControl.h
GENERATE_PARSER
)

if(NOT SKIP_fakeCartesianControl)
yarp_add_plugin(yarp_fakeCartesianControl)

target_sources(yarp_fakeCartesianControl
PRIVATE
FakeCartesianControl.cpp
FakeCartesianControl.h
# FakeCartesianControl_ParamsParser.cpp
# FakeCartesianControl_ParamsParser.h
)

target_link_libraries(yarp_fakeCartesianControl
PRIVATE
YARP::YARP_os
YARP::YARP_sig
YARP::YARP_dev
)
list(APPEND YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS
YARP_os
YARP_sig
YARP_dev
)

yarp_install(
TARGETS yarp_fakeCartesianControl
EXPORT YARP_${YARP_PLUGIN_MASTER}
COMPONENT ${YARP_PLUGIN_MASTER}
LIBRARY DESTINATION ${YARP_DYNAMIC_PLUGINS_INSTALL_DIR}
ARCHIVE DESTINATION ${YARP_STATIC_PLUGINS_INSTALL_DIR}
YARP_INI DESTINATION ${YARP_PLUGIN_MANIFESTS_INSTALL_DIR}
)

set(YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS ${YARP_${YARP_PLUGIN_MASTER}_PRIVATE_DEPS} PARENT_SCOPE)

set_property(TARGET yarp_fakeCartesianControl PROPERTY FOLDER "Plugins/Device/Fake")

if(YARP_COMPILE_TESTS)
add_subdirectory(tests)
endif()

endif()
Loading

0 comments on commit 08c5a5a

Please sign in to comment.