Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Drone ROS Packages
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Larkin Heintzman
Drone ROS Packages
Commits
9325d37e
Commit
9325d37e
authored
Nov 09, 2021
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new controller tweaks
parent
67aec53a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
150 additions
and
317 deletions
+150
-317
bus_driver.h
Onboard-SDK-ROS/include/dji_osdk_ros/bus_driver.h
+5
-3
qualisysFeedback.py
Onboard-SDK-ROS/scripts/qualisysFeedback.py
+1
-1
bus_driver.cpp
Onboard-SDK-ROS/src/dji_osdk_ros/samples/bus_driver.cpp
+144
-313
No files found.
Onboard-SDK-ROS/include/dji_osdk_ros/bus_driver.h
View file @
9325d37e
...
@@ -111,7 +111,7 @@ ServiceAck obtainCtrlAuthority();
...
@@ -111,7 +111,7 @@ ServiceAck obtainCtrlAuthority();
bool
takeoff
();
bool
takeoff
();
bool
relativePosition
(
float
x
,
float
y
,
float
z
,
float
yaw
);
std
::
vector
<
float
>
relativePosition
(
float
x
,
float
y
,
float
z
,
float
yaw
);
float
applyRotationAngle
(
float
targetYaw
);
float
applyRotationAngle
(
float
targetYaw
);
...
@@ -127,10 +127,12 @@ void calibratePositionReference(std::vector<float> requestedPosition, std::vecto
...
@@ -127,10 +127,12 @@ void calibratePositionReference(std::vector<float> requestedPosition, std::vecto
void
updateMagnitudeScaler
(
float
newValue
);
void
updateMagnitudeScaler
(
float
newValue
);
std
::
vector
<
float
>
applyRotationMatrixScaling
(
std
::
vector
<
float
>
inputVec
);
float
flatAngleBetween
(
std
::
vector
<
float
>
a
,
std
::
vector
<
float
>
b
);
void
updateAngleScaler
(
float
newValue
);
bool
overwatchFunction
(
dji_osdk_ros
::
Overwatch
::
Request
&
req
,
dji_osdk_ros
::
Overwatch
::
Response
&
res
);
bool
overwatchFunction
(
dji_osdk_ros
::
Overwatch
::
Request
&
req
,
dji_osdk_ros
::
Overwatch
::
Response
&
res
);
std
::
vector
<
float
>
DoCalibrationMove
(
std
::
vector
<
float
>
calibrationVec
);
//
std::vector<float> DoCalibrationMove(std::vector<float> calibrationVec);
void
gpsPosCallback
(
const
sensor_msgs
::
NavSatFix
::
ConstPtr
&
msg
);
void
gpsPosCallback
(
const
sensor_msgs
::
NavSatFix
::
ConstPtr
&
msg
);
void
posFeedbackCallback
(
const
geometry_msgs
::
Transform
::
ConstPtr
&
msg
);
void
posFeedbackCallback
(
const
geometry_msgs
::
Transform
::
ConstPtr
&
msg
);
...
...
Onboard-SDK-ROS/scripts/qualisysFeedback.py
View file @
9325d37e
...
@@ -25,7 +25,7 @@ def main():
...
@@ -25,7 +25,7 @@ def main():
name
=
rospy
.
get_param
(
"~trackName"
)
name
=
rospy
.
get_param
(
"~trackName"
)
namespace
=
rospy
.
get_param
(
"~qualisysName"
)
namespace
=
rospy
.
get_param
(
"~qualisysName"
)
rospy
.
loginfo
(
"looking for track of name "
+
str
(
name
)
+
" ..."
)
rospy
.
loginfo
(
"looking for track of name "
+
str
(
name
)
+
" ..."
)
pub
=
rospy
.
Publisher
(
namespace
+
"/pose_feedback"
,
Transform
,
queue_size
=
1
)
pub
=
rospy
.
Publisher
(
namespace
,
Transform
,
queue_size
=
1
)
rospy
.
Subscriber
(
"/"
+
namespace
+
"/qualisys/"
+
name
+
"/pose"
,
PoseStamped
,
callback
,
queue_size
=
1
)
rospy
.
Subscriber
(
"/"
+
namespace
+
"/qualisys/"
+
name
+
"/pose"
,
PoseStamped
,
callback
,
queue_size
=
1
)
rospy
.
spin
()
rospy
.
spin
()
...
...
Onboard-SDK-ROS/src/dji_osdk_ros/samples/bus_driver.cpp
View file @
9325d37e
This diff is collapsed.
Click to expand it.
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