Skip to content

Commit f06aece

Browse files
Changed name of executable in launch files to match installed node (#230)
Signed-off-by: Christian Eichmann <[email protected]>
1 parent d65467c commit f06aece

File tree

4 files changed

+49
-25
lines changed

4 files changed

+49
-25
lines changed

spacenav/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ ament_export_dependencies(
6666
${THIS_PACKAGE_INCLUDE_DEPENDS}
6767
)
6868

69-
install(TARGETS spacenav
70-
DESTINATION lib
71-
)
72-
7369
if(BUILD_TESTING)
7470
find_package(ament_lint_auto REQUIRED)
7571
set(ament_cmake_copyright_FOUND TRUE)

spacenav/launch/classic-launch.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@
3030

3131

3232
def generate_launch_description():
33-
return LaunchDescription([
34-
Node(package='spacenav', executable='spacenav',
35-
name='spacenav', namespace='', output='screen',
36-
parameters=[{'zero_when_static': True,
37-
'static_count_threshold': 30}]),
38-
])
33+
return LaunchDescription(
34+
[
35+
Node(
36+
package='spacenav',
37+
executable='spacenav_node',
38+
name='spacenav',
39+
namespace='',
40+
output='screen',
41+
parameters=[{'zero_when_static': True, 'static_count_threshold': 30}],
42+
),
43+
]
44+
)

spacenav/launch/no_deadband-launch.py

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,21 @@
3030

3131

3232
def generate_launch_description():
33-
return LaunchDescription([
34-
Node(package='spacenav', executable='spacenav',
35-
name='spacenav', namespace='', output='screen',
36-
parameters=[{'zero_when_static': False,
37-
'static_trans_deadband': 0.0,
38-
'static_rot_deadband': 0.0}]),
39-
])
33+
return LaunchDescription(
34+
[
35+
Node(
36+
package='spacenav',
37+
executable='spacenav_node',
38+
name='spacenav',
39+
namespace='',
40+
output='screen',
41+
parameters=[
42+
{
43+
'zero_when_static': False,
44+
'static_trans_deadband': 0.0,
45+
'static_rot_deadband': 0.0,
46+
}
47+
],
48+
),
49+
]
50+
)

spacenav/launch/static_deadband-launch.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,22 @@
3030

3131

3232
def generate_launch_description():
33-
return LaunchDescription([
34-
Node(package='spacenav', executable='spacenav',
35-
name='spacenav', namespace='', output='screen',
36-
parameters=[{'zero_when_static': False,
37-
'static_count_threshold': 30,
38-
'static_trans_deadband': 40.0,
39-
'static_rot_deadband': 40.0}]),
40-
])
33+
return LaunchDescription(
34+
[
35+
Node(
36+
package='spacenav',
37+
executable='spacenav_node',
38+
name='spacenav',
39+
namespace='',
40+
output='screen',
41+
parameters=[
42+
{
43+
'zero_when_static': False,
44+
'static_count_threshold': 30,
45+
'static_trans_deadband': 40.0,
46+
'static_rot_deadband': 40.0,
47+
}
48+
],
49+
),
50+
]
51+
)

0 commit comments

Comments
 (0)