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

Ros2 devel #200

Closed
wants to merge 53 commits into from
Closed

Ros2 devel #200

wants to merge 53 commits into from

Conversation

vandanamandlik
Copy link

Xacro porting to ROS2.

- Changed run_depend tag to exec_depend as per ROS2 rules.
- Added new tag build_type with value ament_python.
- Renamed roslaunch package name to ros2launch.
Added data_files configuration settings.
Modified entry_points setttings.
removed unnecessary code from setup.py and some cosmetic changes as per ros2 guidelines.
Modified all python scripts as per ros2 coding guidelines.
Added substitution_args.py file, replacement for roslaunch's resolve_args() method,
as it is not available in ROS2's ros2launch package.
Changed license from BSD to 'Apache License, Version 2.0'.(As per ROS2 rules.)
Modified code according to linter test rules
eg.
- Unnecessary dict call - rewrite as a literal
- Indentation error
- Remove bad quotes
As per ROS2 Migration guide If the ROS 1 package uses CMake only to invoke the setup.py file and does not contain anything beside Python code (e.g. also no messages, services, etc.) it should be converted into a pure Python package in ROS 2.
so removed the CMakeLists.txt file.
Referred link: https://index.ros.org/doc/ros2/Migration-Guide/
- A001 "input" is a python builtin and is being shadowed, consider renaming the variable.
- A002 "str" is used as an argument and thus shadows a python builtin, consider renaming the argument.
-  A003 "next" is a python builtin, consider renaming the class attribute.
- Remove bad quotes
- Remove bad quotes from multiline string
- line break before binary operator
- line break after binary operator
- invalid escape sequence '\('
Added shebang line in test_copyright.py, test_flake8.py and test_pep257.py scripts to use python3.
@rhaschke
Copy link
Contributor

Could you please cleanup and squash your commits into meaningful units?
Optimally, I prefer a split into changes that are useful for both, ROS1 and ROS2 and changes for ROS2 migration.

@vandanamandlik
Copy link
Author

Hi, I did cleanup and checked in on ros2 branch ( created new branch).
For your comment "Optimally, I prefer a split into changes that are useful for both, ROS1 and ROS2 and changes for ROS2 migration."
right now I am working only for ROS2 migration.

@darkdragon-001
Copy link

Just linking the new PR for everyone who arrives here: #203

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.

3 participants