File tree Expand file tree Collapse file tree 4 files changed +8
-81
lines changed
Expand file tree Collapse file tree 4 files changed +8
-81
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616*/
1717#include < gtest/gtest.h>
1818
19- #include < gz/msgs/Export.hh>
2019#include " gz/msgs/contact.pb.h"
2120
2221// ///////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments