Skip to content

Commit edd9632

Browse files
authored
Miscellaneous housekeeping (#398)
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
1 parent 0622409 commit edd9632

File tree

4 files changed

+8
-81
lines changed

4 files changed

+8
-81
lines changed

core/include/gz/msgs/convert/Pose.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <gz/msgs/convert/Quaternion.hh>
2222

2323
// Message Headers
24-
#include "gz/msgs/details/quaternion.pb.h"
24+
#include "gz/msgs/quaternion.pb.h"
2525
#include "gz/msgs/pose.pb.h"
2626

2727
// Data Headers

core/src/DynamicFactory.cc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@ DynamicFactory::DynamicFactory()
6565
// Load all the descriptors found in the paths set with GZ_DESCRIPTOR_PATH.
6666
this->LoadDescriptors(descPaths);
6767
}
68-
else
68+
69+
auto globalPath =
70+
std::filesystem::path(gz::msgs::getInstallPrefix()) /
71+
"share" / "gz" / "protos";
72+
73+
if (std::filesystem::exists(globalPath))
6974
{
7075
// Load descriptors from the global share path
71-
this->LoadDescriptors((std::filesystem::path(
72-
gz::msgs::getInstallPrefix()) / "share" / "gz" / "protos").string());
76+
this->LoadDescriptors(globalPath.string());
7377
}
7478
}
7579

gz_msg_gen.bzl

Lines changed: 0 additions & 76 deletions
This file was deleted.

test/integration/headers.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
*/
1717
#include <gtest/gtest.h>
1818

19-
#include <gz/msgs/Export.hh>
2019
#include "gz/msgs/contact.pb.h"
2120

2221
/////////////////////////////////////////////////

0 commit comments

Comments
 (0)