Skip to content

Commit

Permalink
Support conditional urdf/model.hpp include (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass authored Oct 2, 2024
1 parent 733e77d commit adc1719
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/srdfdom/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,15 @@
#include <string>
#include <vector>
#include <utility>
#include <urdf/model.h>
#include <memory>
#include <tinyxml2.h>

#if __has_include(<urdf/model.hpp>)
#include <urdf/model.hpp>
#else
#include <urdf/model.h>
#endif

#include "visibility_control.h"

/// Main namespace
Expand Down

0 comments on commit adc1719

Please sign in to comment.