Skip to content

Conversation

@iory
Copy link
Owner

@iory iory commented Jan 5, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR systematically converts relative imports to absolute imports throughout the skrobot codebase, improving code clarity and maintainability. The changes follow Python best practices (PEP 8) which recommend absolute imports for better readability and to avoid ambiguity.

Key changes:

  • Converted all relative imports (e.g., from .. import module) to absolute imports (e.g., from skrobot import module)
  • Applied consistent import style across all affected modules
  • Maintained proper import organization and removed unnecessary blank lines where appropriate

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
File Description
skrobot/viewers/_trimesh.py Updated model import from relative to absolute
skrobot/viewers/_pyrender.py Updated model and coordinates imports, improved whitespace formatting
skrobot/viewers/_notebook.py Updated model import from relative to absolute
skrobot/urdf/transform_urdf.py Updated modularize_urdf import from relative to absolute
skrobot/urdf/init.py Converted all submodule imports to absolute paths
skrobot/sdf/init.py Converted all submodule imports to absolute paths
skrobot/models/urdf.py Updated RobotModel import from relative to absolute
skrobot/models/pr2.py Updated urdf submodule import, removed extra blank line
skrobot/models/panda.py Updated all parent module imports to absolute paths
skrobot/models/nextage.py Updated all parent module imports to absolute paths
skrobot/models/kuka.py Updated urdf submodule import, removed extra blank line
skrobot/models/fetch.py Updated urdf submodule import, removed extra blank line
skrobot/interfaces/ros2/panda.py Updated base module import from relative to absolute
skrobot/interfaces/ros2/init.py Converted submodule imports to absolute paths
skrobot/interfaces/ros/pr2.py Updated imports and reordered for consistency
skrobot/interfaces/ros/panda.py Updated base module import from relative to absolute
skrobot/interfaces/ros/nextage.py Updated base module import from relative to absolute
skrobot/interfaces/ros/move_base.py Converted all relative imports to absolute, removed extra blank line
skrobot/interfaces/init.py Updated ros module import from relative to absolute
skrobot/coordinates/init.py Converted all submodule imports to absolute paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iory iory merged commit 3f457d6 into main Jan 6, 2026
25 checks passed
@iory iory deleted the import branch January 6, 2026 00:47
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