|
43 | 43 | #include <set>
|
44 | 44 | #include <limits>
|
45 | 45 |
|
46 |
| -#include <hpp/fcl/collision_object.h> |
47 |
| -#include <hpp/fcl/config.hh> |
48 |
| -#include <hpp/fcl/data_types.h> |
49 |
| -#include <hpp/fcl/timings.h> |
50 |
| -#include <hpp/fcl/narrowphase/narrowphase_defaults.h> |
| 46 | +#include "hpp/fcl/collision_object.h" |
| 47 | +#include "hpp/fcl/config.hh" |
| 48 | +#include "hpp/fcl/data_types.h" |
| 49 | +#include "hpp/fcl/timings.h" |
| 50 | +#include "hpp/fcl/narrowphase/narrowphase_defaults.h" |
| 51 | +#include "hpp/fcl/serialization/serializable.h" |
51 | 52 |
|
52 | 53 | namespace hpp {
|
53 | 54 | namespace fcl {
|
@@ -301,7 +302,9 @@ enum CollisionRequestFlag {
|
301 | 302 | };
|
302 | 303 |
|
303 | 304 | /// @brief request to the collision algorithm
|
304 |
| -struct HPP_FCL_DLLAPI CollisionRequest : QueryRequest { |
| 305 | +struct HPP_FCL_DLLAPI CollisionRequest |
| 306 | + : QueryRequest, |
| 307 | + ::hpp::fcl::serialization::Serializable<CollisionRequest> { |
305 | 308 | /// @brief The maximum number of contacts that can be returned
|
306 | 309 | size_t num_max_contacts;
|
307 | 310 |
|
@@ -382,7 +385,9 @@ inline FCL_REAL Contact::getDistanceToCollision(
|
382 | 385 | }
|
383 | 386 |
|
384 | 387 | /// @brief collision result
|
385 |
| -struct HPP_FCL_DLLAPI CollisionResult : QueryResult { |
| 388 | +struct HPP_FCL_DLLAPI CollisionResult |
| 389 | + : QueryResult, |
| 390 | + ::hpp::fcl::serialization::Serializable<CollisionResult> { |
386 | 391 | private:
|
387 | 392 | /// @brief contact information
|
388 | 393 | std::vector<Contact> contacts;
|
@@ -490,7 +495,9 @@ struct HPP_FCL_DLLAPI CollisionResult : QueryResult {
|
490 | 495 | struct DistanceResult;
|
491 | 496 |
|
492 | 497 | /// @brief request to the distance computation
|
493 |
| -struct HPP_FCL_DLLAPI DistanceRequest : QueryRequest { |
| 498 | +struct HPP_FCL_DLLAPI DistanceRequest |
| 499 | + : QueryRequest, |
| 500 | + ::hpp::fcl::serialization::Serializable<DistanceRequest> { |
494 | 501 | /// @brief whether to return the nearest points.
|
495 | 502 | /// Nearest points are always computed and are the points of the shapes that
|
496 | 503 | /// achieve a distance of `DistanceResult::min_distance`.
|
@@ -556,7 +563,9 @@ struct HPP_FCL_DLLAPI DistanceRequest : QueryRequest {
|
556 | 563 | };
|
557 | 564 |
|
558 | 565 | /// @brief distance result
|
559 |
| -struct HPP_FCL_DLLAPI DistanceResult : QueryResult { |
| 566 | +struct HPP_FCL_DLLAPI DistanceResult |
| 567 | + : QueryResult, |
| 568 | + ::hpp::fcl::serialization::Serializable<DistanceResult> { |
560 | 569 | public:
|
561 | 570 | /// @brief minimum distance between two objects.
|
562 | 571 | /// If two objects are in collision and
|
|
0 commit comments