Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arg_utils.py #1

Open
wants to merge 253 commits into
base: foxy-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
253 commits
Select commit Hold shift click to select a range
dc10ab6
Add load file substitution
Jul 20, 2021
ba5f950
Linter fixes
Jul 21, 2021
16ce2a9
Updated Changelog
Jul 21, 2021
df7c96d
0.0.4
Jul 21, 2021
2ac7c2a
change Text type to substitutions
cesc-folch Jul 30, 2021
cc82071
Merge branch 'change_include_utils_to_substitutions' into 'master'
Aug 10, 2021
76396ed
Updated Changelog
Aug 13, 2021
d937180
0.0.5
Aug 13, 2021
085c124
fix slash warns
Noel215 Sep 5, 2022
2dd931a
Merge branch 'fix_slash_warns' into 'master'
jordan-palacios Sep 8, 2022
f374e79
robot utils for pmb2
Noel215 Sep 13, 2022
3bc6941
rm unused import
Noel215 Sep 13, 2022
25c8874
linters
Noel215 Sep 14, 2022
2db0442
launch methods for tiago
Noel215 Sep 14, 2022
02642c1
pal-gripper as default end_effector
Noel215 Sep 15, 2022
2aaba99
Merge branch 'robot_utils' into 'master'
jordan-palacios Sep 15, 2022
805dea9
add get_robot_name arg to choose default value
Noel215 Sep 16, 2022
2b89991
Merge branch 'arg_robot_name' into 'master'
jordan-palacios Sep 20, 2022
f69e89b
update maintainers
Noel215 Sep 19, 2022
61dc4e5
Merge branch 'update_maintainers' into 'master'
jordan-palacios Sep 20, 2022
a4b320a
update copyright
Noel215 Sep 19, 2022
f4df043
Merge branch 'update_copyright' into 'master'
jordan-palacios Sep 20, 2022
bd2c371
update changelog
Noel215 Oct 19, 2022
cea35f2
0.0.6
Noel215 Oct 19, 2022
1c9b708
added parse_parametric_yaml utils
Apr 3, 2023
d6a20fb
Merge branch 'feat/pal-navigation-cfg' into 'master'
Noel215 Apr 3, 2023
aff5e6c
Update changelog
Noel215 Apr 4, 2023
f6f8ed8
0.0.7
Noel215 Apr 4, 2023
19612f1
fix cast when bool equals False
Apr 13, 2023
b4da369
Merge branch 'fix/bool-cast' into 'master'
Noel215 Apr 13, 2023
8f21431
Update changelogs
Noel215 Jun 13, 2023
21050c2
0.0.8
Noel215 Jun 13, 2023
100efd3
Remove not supported choices
Noel215 Jul 7, 2023
d751014
Merge branch 'remove_deprecated_choices' into 'master'
jordan-palacios Jul 7, 2023
dbec4c6
Update changelogs
Noel215 Jul 7, 2023
10cf2e9
0.0.9
Noel215 Jul 7, 2023
427e0ff
feat: Add pmb3 utils
Oct 5, 2023
3ec43ae
Merge branch 'yen/feat/pmb3_robot' into 'master'
Oct 5, 2023
71b2f91
update changelog
Oct 10, 2023
5b0784e
0.0.10
Oct 10, 2023
796cfac
autopep8 line wrapping
severin-lemaignan Oct 17, 2023
81d21b0
Initial ARI support
severin-lemaignan Oct 16, 2023
e5e48b3
Merge branch 'ari_support' into 'master'
jordan-palacios Nov 6, 2023
73cd30a
Update changelogs
Noel215 Nov 9, 2023
c6a68ae
0.0.11
Noel215 Nov 9, 2023
0136bea
added support for omni_base
Oct 20, 2023
6fc0421
Merge branch 'feat/ros2-omni-base' into 'master'
Noel215 Nov 14, 2023
bd3940f
Add website tag
Noel215 Nov 14, 2023
711f0a4
Merge branch 'add_website' into 'master'
jordan-palacios Nov 14, 2023
7861006
Update changelogs
Noel215 Nov 14, 2023
9ee3ee9
0.0.12
Noel215 Nov 14, 2023
872a538
Create initial version of robot configuration
doterkuile Oct 17, 2023
51d3881
Create function to translate setting to launch arg
doterkuile Oct 17, 2023
a54b4a9
Add scoped launch file inclusion
doterkuile Nov 8, 2023
93d0985
A bit of documentation
doterkuile Nov 8, 2023
a137214
loop over value instead of items
doterkuile Nov 8, 2023
25d6b9e
Update types
doterkuile Nov 15, 2023
6dfa485
update linting
doterkuile Nov 16, 2023
b6557e3
Add base dataclass with for launch args
doterkuile Nov 15, 2023
34e4279
Update tiago configuration
doterkuile Nov 16, 2023
707476e
Add get_configuration function to robotConfig
doterkuile Nov 16, 2023
d767402
Update linting
doterkuile Nov 16, 2023
e9efc5b
Add launch arg factory
doterkuile Nov 16, 2023
2a86b7e
Update tiaog config and add tiago_dual config
doterkuile Nov 16, 2023
3150beb
Update linting
doterkuile Nov 16, 2023
491ffea
Merge branch 'launch-arg-class' into 'scoped-launch'
doterkuile Nov 17, 2023
7cb938b
change to double quotes to be consistent in robot config yaml
doterkuile Nov 22, 2023
3135382
Change yaml file to single quotes
doterkuile Nov 29, 2023
9a2dd05
Add docstrings and update README
doterkuile Nov 29, 2023
54ccd7e
Remove triple quotes
doterkuile Nov 29, 2023
3b09be4
Merge branch 'scoped-launch' into 'master'
Noel215 Nov 29, 2023
c228b24
Update changelogs
Noel215 Nov 29, 2023
c5f6be0
0.0.13
Noel215 Nov 29, 2023
958a271
Update include scoped launch for more intuitive use
doterkuile Nov 30, 2023
e691d15
Add tests
doterkuile Nov 30, 2023
7876835
update readme
doterkuile Nov 30, 2023
131959f
Merge branch 'add-include-utils-tests' into 'master'
Noel215 Nov 30, 2023
3475740
Type hint and use get_share_directory function
doterkuile Nov 30, 2023
569ff82
Use assertDictEqual in test
doterkuile Dec 1, 2023
82897dc
Merge branch 'minor-fix' into 'master'
Noel215 Dec 4, 2023
a2b11ae
Enable autocomplete for robot arguments
doterkuile Dec 1, 2023
9494c52
Update configuration file keywords
doterkuile Dec 1, 2023
cacd89d
update typo
doterkuile Dec 1, 2023
67faed9
fix typo and add type hint
doterkuile Dec 1, 2023
fb80cb6
Update style errors
doterkuile Dec 4, 2023
1d7fdb6
Merge branch 'update-robot-args' into 'master'
Noel215 Dec 4, 2023
b32e5a6
Update changelogs
Noel215 Dec 4, 2023
a26a018
0.0.14
Noel215 Dec 4, 2023
fd8525d
Update README
doterkuile Dec 20, 2023
a68da29
Remove unecessary whitelines
doterkuile Dec 20, 2023
0c8c0b8
Change arm type from right-arm to tiago-arm
doterkuile Dec 20, 2023
b834d2a
Add right-arm as arm type for backwards compability
doterkuile Dec 21, 2023
791e948
Merge branch 'new-launch-template' into 'master'
Noel215 Jan 17, 2024
32551b1
Update changelogs
Noel215 Jan 17, 2024
11bc1b8
0.0.15
Noel215 Jan 17, 2024
030117b
Adding pal_robotiq grippers as part of choises for the end_effector i…
ainairisarri Dec 14, 2023
f96ff0d
adding robotiq as end effector for tiago dual
ainairisarri Dec 15, 2023
80a1023
removing epick
ainairisarri Jan 18, 2024
1d35cb8
Merge branch 'feat/robotiq_ros2_support' into 'master'
Noel215 Jan 18, 2024
dfce4af
Update changelogs
Noel215 Jan 18, 2024
ebebc77
0.0.16
Noel215 Jan 18, 2024
e9366ba
tiago_pro robot_name added in the possible choices
ileniaperrella Jan 17, 2024
8d9bdb2
Merge branch 'tiago-pro' into 'master'
Noel215 Jan 25, 2024
f433d08
Update changelogs
Noel215 Jan 29, 2024
f3985e7
0.0.17
Noel215 Jan 29, 2024
9e42a33
Remove right-arm option for tiago
Noel215 Jan 31, 2024
dafe9e9
Merge branch 'fix/remove_right_arm' into 'master'
Noel215 Jan 31, 2024
91f236f
Update changelogs
Noel215 Jan 31, 2024
c02993a
0.0.18
Noel215 Jan 31, 2024
0c4c96b
Create a class that contains frequently used Launch arguments to avoi…
doterkuile Mar 14, 2024
51f460b
Merge branch 'common-arg-utils' into 'master'
Noel215 Mar 20, 2024
521bf40
Tiago sea params
Mar 11, 2024
abfd901
Tiago sea dual params
Mar 11, 2024
e83bba9
Velodyne param added
Mar 11, 2024
81fe9d9
Fixing tiago_dual_configuration
Mar 11, 2024
7f77c90
Update config to tiago sea specific arguments
doterkuile Mar 11, 2024
0fc17d8
Removed has_screen from tiago_sea
Mar 11, 2024
30ca49b
Configs for tiago_sea
Mar 12, 2024
c585746
Standarized config names
Mar 18, 2024
fcc9ae2
Suggested changess
Mar 20, 2024
eb491a6
Fixed base_type and arm_type
Mar 20, 2024
866c225
Merge branch 'tiago_sea_humble' into 'master'
Noel215 Mar 20, 2024
e6bf7a9
Add tiago pro config
doterkuile Mar 11, 2024
45abe94
Add wrist model for spherical wrist
doterkuile Mar 13, 2024
f718ac6
Add extra common launch args
doterkuile Mar 14, 2024
18265e6
Change common param to is_public_sim
doterkuile Mar 20, 2024
cac88fd
Remove unsupported lasers for now
doterkuile Mar 20, 2024
7fe338a
Update default values
doterkuile Mar 20, 2024
6f53ad0
Merge branch 'add-tiago-pro-config' into 'master'
Noel215 Mar 20, 2024
5ce36a7
Update changelogs
Noel215 Mar 20, 2024
cbf4c8e
0.1.0
Noel215 Mar 20, 2024
c219916
Add sensor manager as common arg
doterkuile Mar 21, 2024
07a2802
Fix flake test
doterkuile Mar 21, 2024
ac3a51c
Merge branch 'sensor-manager-common-arg' into 'master'
Noel215 Mar 21, 2024
e31c897
Update changelogs
Noel215 Mar 21, 2024
94620d5
0.1.1
Noel215 Mar 21, 2024
5310fcd
Update realsense name in camera rgument
doterkuile Mar 26, 2024
c532f30
Avoid breaking tiago pro tests
doterkuile Mar 27, 2024
bafcc27
Merge branch 'dtk/fix/tiago-pro-camera' into 'master'
Noel215 Apr 8, 2024
70ec387
Update changelogs
Noel215 Apr 8, 2024
1521da8
0.1.2
Noel215 Apr 8, 2024
405ced7
Changed arm name from sea to tiago-sea for standarization
Mar 25, 2024
328b09c
Merge branch 'tiago-sea-dual' into 'master'
Noel215 Apr 8, 2024
804d24b
Update changelogs
Noel215 Apr 9, 2024
aa09026
0.1.3
Noel215 Apr 9, 2024
09cf2ff
Remove wrong realsense camera arg name
doterkuile Apr 8, 2024
127ddbe
Merge branch 'dtk/fix/wrong-camera-arg' into 'master'
Noel215 Apr 11, 2024
31004e0
Add wheel model
doterkuile Apr 9, 2024
e470b43
Merge branch 'dtk/feat/wheel-model-tiago-pro' into 'master'
Noel215 Apr 11, 2024
34a76a1
Added is_public_sim action check
Apr 11, 2024
8c85a42
Merge branch 'omm/feat/public_check_action' into 'master'
Noel215 Apr 11, 2024
dd6d9ef
Update changelogs
Noel215 Apr 12, 2024
b3a500e
0.1.4
Noel215 Apr 12, 2024
1baa13e
fix _parse_config to be able to have a variable between text
ainairisarri Apr 22, 2024
5567118
fix tests
ainairisarri Apr 24, 2024
8cab68d
Merge branch 'fix/_parse_config' into 'master'
Noel215 Apr 26, 2024
fb7c4fc
Update changelogs
Noel215 Apr 26, 2024
71a0ad0
0.1.5
Noel215 Apr 26, 2024
913fa82
added tuck arm parameter
SergiAcosta May 7, 2024
2a2634b
Merge branch 'add-tuck-arm-arg' into 'master'
Noel215 May 8, 2024
e5598ce
Update changelogs
Noel215 May 8, 2024
37c0903
0.1.6
Noel215 May 8, 2024
81f12ae
Set all boolean robot args to capital value
doterkuile May 9, 2024
ccd2d41
Merge branch 'dtk/fix/bool-args' into 'master'
Noel215 May 9, 2024
1d88088
Update Changelog
doterkuile May 9, 2024
f0a5e2e
0.1.7
doterkuile May 9, 2024
15f2001
Robot position args added to common
May 15, 2024
5f3b4c2
Merge branch 'omm/common_pos_args' into 'master'
doterkuile May 15, 2024
8e47380
Update Changelog
doterkuile May 15, 2024
e5d7d4a
0.1.8
doterkuile May 15, 2024
6c3b49e
fixed screen parameters, edited configuration and robot argument files
May 15, 2024
8898235
typo fixed
May 16, 2024
341d5a7
Merge branch 'VKG/fix/screen-parameters' into 'master'
doterkuile May 16, 2024
7b3d96c
Update Changelog
doterkuile May 16, 2024
a7eb954
0.1.9
doterkuile May 16, 2024
1edc37a
Proper courier_rgbd_sensor name
May 16, 2024
a73e772
Merge branch 'omm/feat/rgdb_sensors_rename' into 'master'
doterkuile May 16, 2024
e595a43
Update Changelog
doterkuile May 17, 2024
c16509b
0.1.10
doterkuile May 17, 2024
b36c62f
extend _parse_config functionality
May 21, 2024
1da6710
added import, modified explication
May 22, 2024
f5e6b9d
linters
May 27, 2024
c71b195
linters
May 27, 2024
fe6dcb6
linters
May 27, 2024
30cec4c
Merge branch 'feat/aca/find-pkg-share-yaml' into 'master'
doterkuile May 28, 2024
3e789f4
Update Changelog
doterkuile May 28, 2024
487a62d
0.1.11
doterkuile May 28, 2024
54238f1
update lauch args for the omni base
thomaspeyrucain Jun 5, 2024
1b76a21
Merge branch 'tpe/upate_std_and_launch_arg' into 'master'
doterkuile Jun 10, 2024
fcb42df
Update Changelog
doterkuile Jun 10, 2024
7d8ae42
Update Changelog
doterkuile Jun 11, 2024
cc8b2c3
0.1.12
doterkuile Jun 11, 2024
6892605
Move common args
doterkuile Jun 20, 2024
bdea898
ArgFactory class to create launch args from yaml
doterkuile Jun 20, 2024
a2daffb
Remove robot configurations
doterkuile Jun 21, 2024
11d2d63
Merge branch 'dtk/move-robot-args' into 'master'
doterkuile Jun 26, 2024
50fc603
Update Changelog
doterkuile Jun 26, 2024
f9e9a40
0.1.13
doterkuile Jun 26, 2024
3d51c92
feat: tiago dual support
Jun 27, 2024
84a73f5
feat: add robot_name to CommonArgs
Jul 3, 2024
fd4e7b6
Merge branch 'feature/tiago-dual-support' into 'master'
doterkuile Jul 3, 2024
234e522
add slam param
ainairisarri Jul 3, 2024
653e123
fix declare slam
ainairisarri Jul 3, 2024
d9b3a95
Merge branch 'air/feat/add_slam' into 'master'
doterkuile Jul 3, 2024
938d351
Update Changelog
doterkuile Jul 3, 2024
63bc27a
0.1.14
doterkuile Jul 3, 2024
589f91d
added advanced navigation
Jun 28, 2024
e388d74
Merge branch 'abr/feat/advanced-navigation' into 'master'
doterkuile Jul 4, 2024
0f0a970
add impl of PAPS-007 'get_pal_configuration'
severin-lemaignan Jun 20, 2024
b1ad28d
Merge branch 'paps007' into 'master'
Noel215 Jul 4, 2024
309a221
Composition utils to generate containers from a yaml files
Mar 27, 2024
d126c8c
Removing pal_computer_monitor dep
Apr 17, 2024
21fa715
Readme and new type variable name
Apr 17, 2024
9827a08
Added package field for extended usability
Apr 18, 2024
397276d
Merge branch 'omm/feat/composition_utils' into 'master'
doterkuile Jul 4, 2024
96e5e50
Update Changelog
doterkuile Jul 4, 2024
a9113d9
0.1.15
doterkuile Jul 4, 2024
f605aa3
PAPS-007 - get_pal_parameters: add support for user configuration in …
severin-lemaignan Aug 1, 2024
6d980fc
get_pal_parameters: improved logging
severin-lemaignan Aug 1, 2024
67ff495
PAPS-007: better logging for invalid user configuration files
severin-lemaignan Aug 1, 2024
6e34bf3
Merge branch 'pap7-local-config' into 'master'
Noel215 Aug 5, 2024
56121d6
[test] make sure changing AMENT_PREFIX_PATH does not spill out of the…
severin-lemaignan Aug 5, 2024
18fa2c9
Merge branch 'test_ament_prefix' into 'master'
Noel215 Aug 5, 2024
356dd0b
Update changelogs
Noel215 Aug 5, 2024
862cdc5
0.2.0
Noel215 Aug 5, 2024
8b8a951
Add talos and kangaroo as robots
adriaroig Aug 6, 2024
f2521ab
Merge branch 'kangaroo_talos' into 'master'
Noel215 Aug 6, 2024
395b350
Update changelogs
Noel215 Aug 6, 2024
4ec537d
0.3.0
Noel215 Aug 6, 2024
26a4203
add namespaces option when including launch file
tomkimsour Aug 26, 2024
4333c69
add tests for namespace
tomkimsour Aug 27, 2024
17fcca7
Merge branch 'feat/add-namespaces-to-launchfiles' into 'master'
doterkuile Aug 27, 2024
cfa66ff
Update Changelog
doterkuile Aug 28, 2024
314d0a7
0.4.0
doterkuile Aug 28, 2024
fb7ed7b
add deprecation note to the robot_utils methods
saikishor Sep 17, 2024
df28406
Merge branch 'add/deprecation/note' into 'master'
mathias-luedtke Sep 17, 2024
26a2987
Update changelogs
Noel215 Sep 17, 2024
a63de88
0.5.0
Noel215 Sep 17, 2024
2e834f5
Add tool_changer arg
thomaspeyrucain Sep 20, 2024
90d49bd
Merge branch 'tpe/fix_wrist' into 'master'
mathias-luedtke Sep 26, 2024
ce33566
Update changelogs
mathias-luedtke Sep 26, 2024
e4d5c29
0.6.0
mathias-luedtke Sep 26, 2024
7746b53
[get_pal_param] show config files from high to lower precedence
severin-lemaignan Oct 14, 2024
a05dc8e
[get_pal_parm] automatically creates cmdline arguments for node params
severin-lemaignan Oct 14, 2024
3c19679
[pal_get_params] ensure we get the default values for nested parameters
severin-lemaignan Oct 14, 2024
e67cc3d
Merge branch 'auto_cmdline_args' into 'master'
Noel215 Oct 16, 2024
18c278f
update README iwith get_pal_configuration automatic arguments
severin-lemaignan Oct 16, 2024
5f7ef78
Merge branch 'readme-get_pal_parameters' into 'master'
Noel215 Oct 16, 2024
13feef3
Update changelogs
Noel215 Oct 16, 2024
feffa7c
0.7.0
Noel215 Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add tests for namespace
  • Loading branch information
tomkimsour committed Aug 27, 2024
commit 4333c69adb997cf0994028289d5df0b43e8b745f
2 changes: 1 addition & 1 deletion launch_pal/include_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 130,7 @@ def include_scoped_launch_py_description(
actions = []

# Add namespace to launched node (needs to be run first)
if namespace != None:
if namespace:
actions.append(PushRosNamespace(namespace))
# Add environment variables
actions.extend(env_vars)
Expand Down
46 changes: 46 additions & 0 deletions test/test_include_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 21,9 @@
from launch.substitutions import LaunchConfiguration
from launch.actions import DeclareLaunchArgument, SetEnvironmentVariable, IncludeLaunchDescription
from launch_ros.substitutions import FindPackageShare
from launch_ros.actions import PushRosNamespace

import pytest


class TestIncludeLaunch(unittest.TestCase):
Expand Down Expand Up @@ -157,3 160,46 @@ def test_include_scoped_python_file_with_args(self):
nested_launch_args['arg_5'].variable_name[0].text, 'arg_e')

return


class Config:
def __init__(
self,
*,
push_ns=None,
expected_ns=None,
):
self.push_ns = push_ns
self.expected_ns = expected_ns

def __repr__(self):
return f'push_ns={self.push_ns}, expected_ns={self.expected_ns}, '


def get_test_cases():
return (
Config(push_ns='elle_pleut', expected_ns='/elle_pleut'),
Config(push_ns='', expected_ns=''),
Config(),
)


@pytest.mark.parametrize('config', get_test_cases())
def test_push_ros_namespace_with_composable_node(config):
context = LaunchContext()
pkg_name = 'launch_pal'
file_path = ['launch', 'test.launch.py']

launch_description = include_scoped_launch_py_description(
pkg_name=pkg_name,
paths=file_path,
namespace=config.push_ns,
)
scoped_actions = launch_description._GroupAction__actions
expected_ns = config.expected_ns if config.expected_ns is not None else ''
if expected_ns != '':
assert isinstance(scoped_actions[0], PushRosNamespace)
namespace_action: PushRosNamespace = scoped_actions[0]
assert namespace_action.namespace[0].perform(context) == config.push_ns
else:
assert not isinstance(scoped_actions[0], PushRosNamespace)