Skip to content

Commit

Permalink
Merge branch 'PX4:main' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ayhamalharbat authored Jun 5, 2024
2 parents 9ea762c + 383a68e commit 1184828
Show file tree
Hide file tree
Showing 10 changed files with 172 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0]
os: [macos-13]
steps:
- uses: actions/checkout@v1
- name: submodule update
Expand Down
7 changes: 7 additions & 0 deletions include/gazebo_aruco_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@
#include "TargetRelative.pb.h"

#include <opencv2/opencv.hpp>

#include <opencv2/aruco.hpp>
// Check for OpenCV version 4.7 or later
#if CV_VERSION_MAJOR >= 4 && CV_VERSION_MINOR >= 7
#include <opencv2/objdetect/aruco_dictionary.hpp>
#else
#include <opencv2/aruco/dictionary.hpp>
#endif

#include <opencv2/core.hpp>

#include <vector>
Expand Down
8 changes: 7 additions & 1 deletion include/gazebo_camera_manager_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <gazebo/rendering/rendering.hh>
#include <SITLGps.pb.h>
#include <ignition/math.hh>
#include <chrono>

namespace gazebo
{
Expand Down Expand Up @@ -61,6 +62,8 @@ class GAZEBO_VISIBLE CameraManagerPlugin : public SensorPlugin
void _handle_storage_info(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_take_photo(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_stop_take_photo(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_start_video_capture(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_stop_video_capture(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_request_camera_settings(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_request_video_stream_information(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
void _handle_request_video_stream_status(const mavlink_message_t *pMsg, struct sockaddr* srcaddr);
Expand Down Expand Up @@ -90,7 +93,8 @@ class GAZEBO_VISIBLE CameraManagerPlugin : public SensorPlugin
enum {
CAPTURE_DISABLED,
CAPTURE_SINGLE,
CAPTURE_ELAPSED
CAPTURE_ELAPSED,
CAPTURE_VIDEO
};

int _captureMode{CAPTURE_DISABLED};
Expand All @@ -117,6 +121,8 @@ class GAZEBO_VISIBLE CameraManagerPlugin : public SensorPlugin
int _systemID{1};
int _componentID{MAV_COMP_ID_CAMERA};
int _mavlinkCamPort{14530};

std::chrono::time_point<std::chrono::high_resolution_clock> _start_video_capture_time;
};

} /* namespace gazebo */
63 changes: 0 additions & 63 deletions models/tailsitter/meshes/propeller_ccw.dae

This file was deleted.

63 changes: 0 additions & 63 deletions models/tailsitter/meshes/propeller_cw.dae

This file was deleted.

Loading

0 comments on commit 1184828

Please sign in to comment.