-
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.
display explanations of modifications made to URDF (#518)
* Messages about each kind of modification in separate sections Apply suggestions from code review * more visible descriptions of modifications * Added license; removed unused variable * moved generation of modification description to separate function * not printing headers of unused messages --------- Signed-off-by: Kacper Lewandowski <[email protected]> Co-authored-by: Jan Hanca <[email protected]> Signed-off-by: Michał Pełka <[email protected]>
- Loading branch information
1 parent
6702361
commit 3821f0f
Showing
8 changed files
with
153 additions
and
42 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
41 changes: 41 additions & 0 deletions
41
Gems/ROS2/Code/Source/RobotImporter/FixURDF/URDFModifications.h
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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/std/containers/vector.h> | ||
#include <AzCore/std/string/string.h> | ||
|
||
namespace ROS2::Utils | ||
{ | ||
struct MissingInertia | ||
{ | ||
AZStd::string linkName; | ||
|
||
~MissingInertia() = default; | ||
}; | ||
|
||
struct IncompleteInertia | ||
{ | ||
AZStd::string linkName; | ||
AZStd::vector<AZStd::string> missingTags; | ||
}; | ||
|
||
struct DuplicatedJoint | ||
{ | ||
AZStd::string oldName; | ||
AZStd::string newName; | ||
}; | ||
|
||
struct UrdfModifications | ||
{ | ||
AZStd::vector<MissingInertia> missingInertias; | ||
AZStd::vector<IncompleteInertia> incompleteInertias; | ||
AZStd::vector<DuplicatedJoint> duplicatedJoints; | ||
}; | ||
|
||
} // namespace ROS2::Utils |
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