-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michał <[email protected]>
- Loading branch information
1 parent
7df5911
commit 7c8a6fd
Showing
11 changed files
with
127 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
/* | ||
* Copyright (c) Contributors to the Open 3D Engine Project. | ||
* For complete copyright and license terms please see the LICENSE at the root of this distribution. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 OR MIT | ||
* | ||
*/ | ||
* Copyright (c) Contributors to the Open 3D Engine Project. | ||
* For complete copyright and license terms please see the LICENSE at the root of this distribution. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 OR MIT | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <AzCore/XML/rapidxml.h> | ||
#include <AzCore/std/string/string.h> | ||
#include <AzCore/std/containers/vector.h> | ||
|
||
#include <AzCore/std/string/string.h> | ||
|
||
namespace ROS2 | ||
{ | ||
namespace Utils | ||
{ | ||
//! Modifies in memory URDF to add missing inertia to links, circle navigate SDF error 19 | ||
//! @param urdf - the in memory URDF to modify | ||
//! @returns a list of links that were modified | ||
AZStd::vector<AZStd::string> AddMissingInertiaToLink(AZ::rapidxml::xml_node<>* urdf); | ||
namespace Utils | ||
{ | ||
//! Modifies in memory URDF to add missing inertia to links, circle navigate SDF error 19 | ||
//! @param urdf - the in memory URDF to modify | ||
//! @returns a list of links that were modified | ||
AZStd::vector<AZStd::string> AddMissingInertiaToLink(AZ::rapidxml::xml_node<>* urdf); | ||
|
||
//! Modifies names of links and joints to be unique, circle navigate SDF error 2 | ||
//! @param urdf - the in memory URDF to modify | ||
//! @returns a list of links that were modified | ||
AZStd::vector<AZStd::string> ChangeDuplications(AZ::rapidxml::xml_node<>* urdf); | ||
//! Modifies names of links and joints to be unique, circle navigate SDF error 2 | ||
//! @param urdf - the in memory URDF to modify | ||
//! @returns a list of links that were modified | ||
AZStd::vector<AZStd::string> ChangeDuplications(AZ::rapidxml::xml_node<>* urdf); | ||
|
||
std::string ModifyURDFInMemory(const std::string& data); | ||
//! Modifies in memory URDF to add missing elements | ||
//! @param urdf - the in memory URDF to modify | ||
//! @returns a modified URDF and a list of XML element that were modified | ||
AZStd::pair<std::string, AZStd::vector<AZStd::string>> ModifyURDFInMemory(const std::string& data); | ||
|
||
} // namespace Utils | ||
} // namespace Utils | ||
} // namespace ROS2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.