Skip to content

Commit

Permalink
Changed name of executable in launch files to match installed node (#230
Browse files Browse the repository at this point in the history
)

Signed-off-by: Christian Eichmann <[email protected]>
  • Loading branch information
chriseichmann authored Sep 14, 2023
1 parent d65467c commit f06aece
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 25 deletions.
4 changes: 0 additions & 4 deletions spacenav/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ ament_export_dependencies(
${THIS_PACKAGE_INCLUDE_DEPENDS}
)

install(TARGETS spacenav
DESTINATION lib
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
set(ament_cmake_copyright_FOUND TRUE)
Expand Down
18 changes: 12 additions & 6 deletions spacenav/launch/classic-launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@


def generate_launch_description():
return LaunchDescription([
Node(package='spacenav', executable='spacenav',
name='spacenav', namespace='', output='screen',
parameters=[{'zero_when_static': True,
'static_count_threshold': 30}]),
])
return LaunchDescription(
[
Node(
package='spacenav',
executable='spacenav_node',
name='spacenav',
namespace='',
output='screen',
parameters=[{'zero_when_static': True, 'static_count_threshold': 30}],
),
]
)
25 changes: 18 additions & 7 deletions spacenav/launch/no_deadband-launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,21 @@


def generate_launch_description():
return LaunchDescription([
Node(package='spacenav', executable='spacenav',
name='spacenav', namespace='', output='screen',
parameters=[{'zero_when_static': False,
'static_trans_deadband': 0.0,
'static_rot_deadband': 0.0}]),
])
return LaunchDescription(
[
Node(
package='spacenav',
executable='spacenav_node',
name='spacenav',
namespace='',
output='screen',
parameters=[
{
'zero_when_static': False,
'static_trans_deadband': 0.0,
'static_rot_deadband': 0.0,
}
],
),
]
)
27 changes: 19 additions & 8 deletions spacenav/launch/static_deadband-launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,22 @@


def generate_launch_description():
return LaunchDescription([
Node(package='spacenav', executable='spacenav',
name='spacenav', namespace='', output='screen',
parameters=[{'zero_when_static': False,
'static_count_threshold': 30,
'static_trans_deadband': 40.0,
'static_rot_deadband': 40.0}]),
])
return LaunchDescription(
[
Node(
package='spacenav',
executable='spacenav_node',
name='spacenav',
namespace='',
output='screen',
parameters=[
{
'zero_when_static': False,
'static_count_threshold': 30,
'static_trans_deadband': 40.0,
'static_rot_deadband': 40.0,
}
],
),
]
)

0 comments on commit f06aece

Please sign in to comment.