Skip to content

Complete Capsule export support and add public exportURDF API - #256

Open
saikishor wants to merge 1 commit into
ros:rollingfrom
saikishor:capsule/export_support
Open

saikishor wants to merge 1 commit into
ros:rollingfrom
saikishor:capsule/export_support

Conversation

@saikishor

Copy link
Copy Markdown
Collaborator

I was reviewing the changes of the Capsule geometry just in case before the official release, and I found that this geomtry is not exported anywhere. I added a utility here to finish that part

@saikishor

Copy link
Copy Markdown
Collaborator Author

Needed for #230

namespace urdf{
URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDF(const std::string &xml_string);
URDFDOM_DLLAPI ModelInterfaceSharedPtr parseURDFFile(const std::string &path);
URDFDOM_DLLAPI std::string exportURDF(const ModelInterface &model);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the exportURDF API was deprecated in #191 and removed in #217

what is it used for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I tthink they are used to export the string from a Model, but not much use. If this is the case, then there needs to be other cleanups to be done. Should I do the cleanup part?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this is a breaking change, so we can merge to rolling after the freeze date and then backport to lyrical after the initial release

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tthink they are used to export the string from a Model, but not much use. If this is the case, then there needs to be other cleanups to be done. Should I do the cleanup part?

maybe create an issue to describe the cleanup work to be done and what it will enable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Copy that

@mergify

mergify Bot commented Jun 21, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@ahcorde ahcorde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

there are conflicts

Signed-off-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
@saikishor
saikishor force-pushed the capsule/export_support branch from bf82358 to a9a577c Compare October 7, 2026 15:16
@saikishor
saikishor requested review from ahcorde and scpeters October 7, 2026 15:17
Comment thread urdf_parser/src/model.cpp

tinyxml2::XMLElement* robot = doc->NewElement("robot");
robot->SetAttribute("name", model.name_.c_str());
robot->SetAttribute("version", "1.2");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this hardcoded version required here ? is there a way to get this value from another place ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Right now, a global one is not defined yet. Maybe we can do that after this PR, to keep the change isolated?

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