File tree Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Expand file tree Collapse file tree 3 files changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ if(BUILD_TESTING)
14
14
add_library (impl_test_sot_mock_device SHARED impl_test_sot_mock_device.cpp )
15
15
set_target_properties (impl_test_sot_mock_device PROPERTIES INSTALL_RPATH
16
16
$ORIGIN )
17
- # target_include_directories(impl_test_sot_mock_device PUBLIC include)
18
17
target_link_libraries (
19
18
impl_test_sot_mock_device PUBLIC sot-core::sot-core
20
19
dynamic-graph-python::dynamic-graph-python )
@@ -32,15 +31,12 @@ if(BUILD_TESTING)
32
31
dynamic_graph_bridge-impl_test_sot_mock_device-wrap SOURCE_PYTHON_MODULE
33
32
"${CMAKE_CURRENT_SOURCE_DIR} /impl_test_sot_mock_device-python-module-py.cc" )
34
33
35
- install (
36
- TARGETS ${plugin_library_name}
37
- EXPORT ${TARGETS_EXPORT_NAME}
38
- DESTINATION ${DYNAMIC_GRAPH_PLUGINDIR} )
39
34
# Library for sot_external_interface
40
35
add_library (impl_test_library SHARED impl_test_sot_external_interface.cpp )
41
36
42
37
target_include_directories (impl_test_library PUBLIC include )
43
- target_link_libraries (impl_test_library PUBLIC sot-core::sot-core )
38
+ target_link_libraries (impl_test_library PUBLIC impl_test_sot_mock_device
39
+ sot-core::sot-core )
44
40
ament_target_dependencies (impl_test_library PUBLIC dynamic_graph_bridge_msgs
45
41
rclcpp rcl_interfaces std_srvs )
46
42
# Executable for SotLoaderBasic test
Original file line number Diff line number Diff line change 31
31
def generate_test_description ():
32
32
"""Load a simple urdf, parameters and the library."""
33
33
ld = LaunchDescription ()
34
-
34
+ print ( "After launch description" )
35
35
robot_description_content_path = PathJoinSubstitution (
36
36
[
37
37
get_package_share_directory ("dynamic_graph_bridge" ),
38
38
"urdf" ,
39
39
"dgb_minimal_robot.urdf" ,
40
40
],
41
41
)
42
-
43
- robot_description_content = Path .open (
44
- robot_description_content_path .perform (None ),
45
- ).read ()
46
-
42
+ print ("Before robot_description_content" )
43
+ robot_description_content_path = Path (robot_description_content_path .perform (None ))
44
+ robot_description_content = robot_description_content_path .open ().read ()
45
+ print ("Before params" )
47
46
params = {
48
47
"state_vector_map" : ["joint1" , "joint2" ],
49
48
"robot_description" : robot_description_content ,
Original file line number Diff line number Diff line change @@ -33,17 +33,19 @@ def generate_test_description():
33
33
34
34
It also set parameters state_vector_map and robot_description
35
35
"""
36
+ print ("start generate_test_description" )
36
37
ld = LaunchDescription ()
37
38
38
- robot_description_content_path = (
39
- Path (get_package_share_directory ("dynamic_graph_bridge" ))
40
- / "urdf"
41
- / "dgb_minimal_robot.urdf"
39
+ robot_description_pathjs_str = PathJoinSubstitution (
40
+ [
41
+ get_package_share_directory ("dynamic_graph_bridge" ),
42
+ "urdf" ,
43
+ "dgb_minimal_robot.urdf" ,
44
+ ],
42
45
)
43
- assert robot_description_content_path .exists ()
44
- robot_description_content = Path .open (
45
- PathJoinSubstitution (str (robot_description_content_path )).perform (None ),
46
- ).read ()
46
+ robot_description_path = Path (robot_description_pathjs_str .perform (None ))
47
+ robot_description_content = robot_description_path .open ().read ()
48
+ print ("After building robot_description_content" )
47
49
terminating_process = Node (
48
50
package = "dynamic_graph_bridge" ,
49
51
executable = "test_sot_loader_basic" ,
You can’t perform that action at this time.
0 commit comments