Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c6e6a519
Commit
c6e6a519
authored
Sep 08, 2020
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
project compiles, not tested
parent
cf53d945
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2521 additions
and
2799 deletions
+2521
-2799
snake.cpp
src/Snake/snake.cpp
+879
-912
snake.h
src/Snake/snake.h
+195
-204
SnakeDataManager.cc
src/Wima/Snake/SnakeDataManager.cc
+495
-494
SnakeDataManager.h
src/Wima/Snake/SnakeDataManager.h
+47
-49
WimaController.cc
src/Wima/WimaController.cc
+625
-779
WimaController.h
src/Wima/WimaController.h
+279
-360
heartbeat.h
src/comm/ros_bridge/include/messages/nemo_msgs/heartbeat.h
+1
-1
No files found.
src/Snake/snake.cpp
View file @
c6e6a519
This diff is collapsed.
Click to expand it.
src/Snake/snake.h
View file @
c6e6a519
This diff is collapsed.
Click to expand it.
src/Wima/Snake/SnakeDataManager.cc
View file @
c6e6a519
This diff is collapsed.
Click to expand it.
src/Wima/Snake/SnakeDataManager.h
View file @
c6e6a519
#pragma once
#include <QGeoCoordinate>
#include <QList>
#include <QObject>
#include <QThread>
#include <QList>
#include <QGeoCoordinate>
#include "QNemoProgress.h"
#include "QNemoHeartbeat.h"
#include "QNemoProgress.h"
#include "SnakeTiles.h"
#include <boost/units/systems/si.hpp>
using
namespace
boost
::
units
;
using
Length
=
quantity
<
si
::
length
>
;
using
Area
=
quantity
<
si
::
area
>
;
class
SnakeImpl
;
enum
class
NemoStatus
{
NotConnected
=
0
,
Connected
=
1
,
Timeout
=
-
1
,
InvalidHeartbeat
=
-
2
enum
class
NemoStatus
{
NotConnected
=
0
,
Connected
=
1
,
Timeout
=
-
1
,
InvalidHeartbeat
=
-
2
};
class
SnakeDataManager
:
public
QThread
{
Q_OBJECT
class
SnakeDataManager
:
public
QThread
{
Q_OBJECT
public:
using
SnakeImplPtr
=
std
::
unique_ptr
<
SnakeImpl
>
;
class
SnakeImpl
;
using
SnakeImplPtr
=
std
::
unique_ptr
<
SnakeImpl
>
;
SnakeDataManager
(
QObject
*
parent
=
nullptr
);
~
SnakeDataManager
()
override
;
public:
SnakeDataManager
(
QObject
*
parent
=
nullptr
);
~
SnakeDataManager
()
override
;
void
setMeasurementArea
(
const
QList
<
QGeoCoordinate
>
&
measurementArea
);
void
setServiceArea
(
const
QList
<
QGeoCoordinate
>
&
serviceArea
);
void
setCorridor
(
const
QList
<
QGeoCoordinate
>
&
corridor
);
void
setMeasurementArea
(
const
QList
<
QGeoCoordinate
>
&
measurementArea
);
void
setServiceArea
(
const
QList
<
QGeoCoordinate
>
&
serviceArea
);
void
setCorridor
(
const
QList
<
QGeoCoordinate
>
&
corridor
);
const
QmlObjectListModel
*
tiles
()
const
;
QVariantList
tileCenterPoints
()
const
;
QNemoProgress
nemoProgress
()
const
;
int
nemoStatus
()
const
;
bool
calcInProgress
()
const
;
QString
errorMessage
()
const
;
bool
success
()
const
;
QNemoProgress
nemoProgress
()
;
int
nemoStatus
()
;
bool
calcInProgress
()
;
QVector
<
QGeoCoordinate
>
waypoints
()
const
;
QVector
<
QGeoCoordinate
>
arrivalPath
()
const
;
QVector
<
QGeoCoordinate
>
returnPath
()
const
;
Length
lineDistance
()
const
;
void
setLineDistance
(
Length
lineDistance
);
Length
lineDistance
()
const
;
void
setLineDistance
(
Length
lineDistance
);
Length
minTransectLength
()
const
;
void
setMinTransectLength
(
Length
minTransectLength
);
Length
minTransectLength
()
const
;
void
setMinTransectLength
(
Length
minTransectLength
);
Area
minTileArea
()
const
;
void
setMinTileArea
(
Area
minTileArea
);
Area
minTileArea
()
const
;
void
setMinTileArea
(
Area
minTileArea
);
Length
tileHeight
()
const
;
void
setTileHeight
(
Length
tileHeight
);
Length
tileHeight
()
const
;
void
setTileHeight
(
Length
tileHeight
);
Length
tileWidth
()
const
;
void
setTileWidth
(
Length
tileWidth
);
Length
tileWidth
()
const
;
void
setTileWidth
(
Length
tileWidth
);
void
enableRosBridge
();
void
disableRosBride
();
void
enableRosBridge
();
void
disableRosBride
();
signals:
void
nemoProgressChanged
();
void
nemoStatusChanged
(
int
status
);
void
calcInProgressChanged
(
bool
inProgress
);
void
nemoProgressChanged
();
void
nemoStatusChanged
(
int
status
);
void
calcInProgressChanged
(
bool
inProgress
);
protected:
void
run
()
override
;
void
run
()
override
;
private:
SnakeImplPtr
pImpl
;
SnakeImplPtr
pImpl
;
};
src/Wima/WimaController.cc
View file @
c6e6a519
This diff is collapsed.
Click to expand it.
src/Wima/WimaController.h
View file @
c6e6a519
This diff is collapsed.
Click to expand it.
src/comm/ros_bridge/include/messages/nemo_msgs/heartbeat.h
View file @
c6e6a519
...
...
@@ -17,7 +17,7 @@ std::string messageType();
//! @brief C++ representation of nemo_msgs/Heartbeat message
class
Heartbeat
{
public:
Heartbeat
(){}
Heartbeat
()
:
_status
(
0
)
{}
Heartbeat
(
int
status
)
:
_status
(
status
){}
Heartbeat
(
const
Heartbeat
&
heartbeat
)
:
_status
(
heartbeat
.
status
()){}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment