Skip to content

Commit

Permalink
added new executable yarpActionsPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Jan 20, 2025
1 parent f7f5a68 commit 11efac5
Show file tree
Hide file tree
Showing 10 changed files with 1,396 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ if(YARP_COMPILE_EXECUTABLES)
add_subdirectory(yarplogger-console)
add_subdirectory(yarpdataplayer-console)
add_subdirectory(yarpdatadumper)
add_subdirectory(yarpActionsPlayer)

# GUIs
add_subdirectory(guis)
Expand Down
23 changes: 23 additions & 0 deletions src/yarpActionsPlayer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2024-2024 Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

project(yarpActionsPlayer)

file(GLOB folder_source *.cpp)
file(GLOB folder_header *.h)
source_group("Source Files" FILES ${folder_source})
source_group("Header Files" FILES ${folder_header})

add_executable(yarpActionsPlayer ${folder_source} ${folder_header})

target_link_libraries(yarpActionsPlayer
PRIVATE
YARP::YARP_init
YARP::YARP_os
YARP::YARP_sig
YARP::YARP_dev
)

install(TARGETS yarpActionsPlayer COMPONENT utilities DESTINATION ${CMAKE_INSTALL_BINDIR})

set_property(TARGET yarpActionsPlayer PROPERTY FOLDER "Command Line Tools")
9 changes: 9 additions & 0 deletions src/yarpActionsPlayer/configuration_example.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[CONTROLLERS]
controller1_robot (/cer/all_joints) (torso_heave_eq_joint torso_roll_eq_joint torso_pitch_eq_joint torso_yaw_joint l_shoulder_pitch r_shoulder_pitch r_shoulder_roll r_shoulder_yaw r_elbow r_wrist_yaw r_wrist_roll r_wrist_pitch l_shoulder_roll l_shoulder_yaw l_elbow l_wrist_yaw l_wrist_roll l_wrist_pitch )
controller2_sim (/SIM_CER_ROBOT/torso /SIM_CER_ROBOT/left_arm /SIM_CER_ROBOT/right_arm) (torso_heave_eq_joint torso_roll_eq_joint torso_pitch_eq_joint torso_yaw_joint l_shoulder_pitch_joint r_shoulder_pitch_joint r_shoulder_roll_joint r_shoulder_yaw_joint r_elbow_joint r_wrist_pronosupination_joint r_wrist_roll_eq_joint r_wrist_pitch_eq_joint l_shoulder_roll_joint l_shoulder_yaw_joint l_elbow_joint l_wrist_pronosupination_joint l_wrist_roll_eq_joint l_wrist_pitch_eq_joint )

[ACTIONS]
wave_hand controller1_robot trajectory_file1.txt
rise_hand controller1_robot trajectory_file2.txt
turn_head_left controller2_sim trajectory_file3.txt
turn_head_right controller2_sim trajectory_file4.txt
Loading

0 comments on commit 11efac5

Please sign in to comment.