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

Fix multi-line strings in DeclareLaunchArgument #18

Merged
merged 1 commit into from
May 27, 2024
Merged

Fix multi-line strings in DeclareLaunchArgument #18

merged 1 commit into from
May 27, 2024

Conversation

MatthijsBurgh
Copy link
Contributor

I deleted my fork. I forgot #16 was not merged yet. I restored the branch with my changes.

@fmauch
Copy link
Collaborator

fmauch commented Apr 30, 2024

@MatthijsBurgh If you could fix the merge conflicts introduced by #7 that would be awesome!

@MatthijsBurgh
Copy link
Contributor Author

@fmauch please have a look at https://github.com/UniversalRobots/Universal_Robots_ROS2_GZ_Simulation/pull/18/files#diff-07ff1e87117ca592c12e8dcd194c3721e5cd805507f87a755e66fb65fce40670L72 and https://github.com/UniversalRobots/Universal_Robots_ROS2_GZ_Simulation/pull/18/files#diff-07ff1e87117ca592c12e8dcd194c3721e5cd805507f87a755e66fb65fce40670L80. As IMO the URDF/XACRO file should be in the description package. The description package should be configurable, to make the launch file reusable and also because you use these arguments in ur_sim_moveit.launch.py.

But my changes create a conflict for the default values. So please let me know how you want to solve it.

@fmauch
Copy link
Collaborator

fmauch commented May 7, 2024

@MatthijsBurgh that's exactly one of the changes we did in the latest refactoring of the description. The description now only contains the actual kinematic description. The ros2_control part gets added in the places that actually start the control structure. Hence, every control package (driver, gazebo classic, gz sim) build their own description assembling the kinematic description and the control description. We made those changes on purpose in order to remove dependencies and move the level of concern to where it actually belongs.

@MatthijsBurgh
Copy link
Contributor Author

That is fine. It means the rviz config is not always in the description pkg.

So do you want to create another argument for that? And maybe also for the rviz config filename?

@fmauch
Copy link
Collaborator

fmauch commented May 7, 2024

I would say, let's not worry about that in this PR, that is what we have #22 for.

@MatthijsBurgh
Copy link
Contributor Author

So any changes needed here or not?

@fmauch
Copy link
Collaborator

fmauch commented May 7, 2024

No changes needed here, just the docstrings. Thank you for your continuous effort!

@MatthijsBurgh
Copy link
Contributor Author

But I already included more changes than just the docstrings. So are you happy with the current status of this PR?

@fmauch
Copy link
Collaborator

fmauch commented May 7, 2024

Sorry, my statement was not clear. Please remove all the changes that are not related to the docstrings. This PR should only alter the docstrings that are present on the current ros2 branch.

@MatthijsBurgh
Copy link
Contributor Author

@fmauch done

@fmauch
Copy link
Collaborator

fmauch commented May 7, 2024

Thank you @MatthijsBurgh It seems like the prefix argument of the ur_sim_moveit.launch.py file has slipped through. Apart from that this is looking good.

@MatthijsBurgh
Copy link
Contributor Author

@fmauch sorry, I missed that last argument and your comment. Should be fixed now.

Copy link
Collaborator

@fmauch fmauch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for coming back to this @MatthijsBurgh, this looks good!

Comment on lines 61 to 62
description_package = LaunchConfiguration("description_package")
description_file = LaunchConfiguration("description_file")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert that change, as we want to get rid of the "description package" structure.

Suggested change
description_package = LaunchConfiguration("description_package")
description_file = LaunchConfiguration("description_file")

@@ -69,15 +71,15 @@ def launch_setup(context, *args, **kwargs):
)

rviz_config_file = PathJoinSubstitution(
[FindPackageShare("ur_description"), "rviz", "view_robot.rviz"]
[FindPackageShare(description_package), "rviz", "view_robot.rviz"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert that change, as we want to get rid of the "description package" structure.

)

robot_description_content = Command(
[
PathJoinSubstitution([FindExecutable(name="xacro")]),
" ",
PathJoinSubstitution(
[FindPackageShare("ur_simulation_gz"), "urdf", "ur_gz.urdf.xacro"]
[FindPackageShare(description_package), "urdf", description_file]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That change is not required, it's supposed to be like that.

Comment on lines 103 to 104
"sim_ignition:=true",
" ",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not needed anymore.

Suggested change
"sim_ignition:=true",
" ",

@fmauch fmauch merged commit 14b83f1 into UniversalRobots:ros2 May 27, 2024
6 checks passed
@MatthijsBurgh MatthijsBurgh deleted the fix/declare_launch_argument branch May 27, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants