Commit d27cad3
authored
Add robot name modification feature to change_urdf_root command (#570)
When changing the root link of a URDF that was generated from xacro modules,
the robot name now automatically changes to reflect the new root configuration.
This prevents naming conflicts when using modularize-urdf to convert the
modified URDF back to xacro format.
Previously, when converting a root-changed URDF to xacro using modularize-urdf,
the generated macro would have the same name as the original, causing conflicts
when trying to use both the original and root-changed versions in the same
xacro file.
Changes:
- Auto-generate new robot name as "{original}_root_{new_root_link}" by default
- Add --robot-name option for custom robot names
- Add --keep-robot-name option to preserve the original name
- Update URDFXMLRootLinkChanger to support robot name modification1 parent dde639a commit d27cad3
File tree
2 files changed
+87
-5
lines changed- skrobot
- apps
- urdf
2 files changed
+87
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
65 | 81 | | |
66 | 82 | | |
67 | 83 | | |
| |||
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| 99 | + | |
83 | 100 | | |
84 | 101 | | |
| 102 | + | |
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
| |||
122 | 140 | | |
123 | 141 | | |
124 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
125 | 155 | | |
| 156 | + | |
| 157 | + | |
126 | 158 | | |
127 | 159 | | |
128 | 160 | | |
| |||
137 | 169 | | |
138 | 170 | | |
139 | 171 | | |
140 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
141 | 182 | | |
142 | 183 | | |
143 | 184 | | |
144 | 185 | | |
145 | 186 | | |
146 | 187 | | |
147 | 188 | | |
| 189 | + | |
148 | 190 | | |
149 | 191 | | |
150 | 192 | | |
151 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
152 | 197 | | |
153 | 198 | | |
154 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | | - | |
| 156 | + | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
| |||
476 | 484 | | |
477 | 485 | | |
478 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
479 | 514 | | |
480 | 515 | | |
481 | 516 | | |
| |||
504 | 539 | | |
505 | 540 | | |
506 | 541 | | |
507 | | - | |
| 542 | + | |
508 | 543 | | |
509 | 544 | | |
510 | 545 | | |
| |||
515 | 550 | | |
516 | 551 | | |
517 | 552 | | |
| 553 | + | |
| 554 | + | |
518 | 555 | | |
519 | 556 | | |
520 | | - | |
| 557 | + | |
0 commit comments