mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-01 15:39:32 +00:00
Compare commits
4 Commits
hitl
...
test-raw-b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90be370119 | ||
|
|
24cd1f6fac | ||
|
|
5223bef5e7 | ||
|
|
105eac7e1d |
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -21,3 +21,25 @@ jobs:
|
|||||||
- name: Native Noetic build
|
- name: Native Noetic build
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $(pwd):/root/catkin_ws/src/clover ros:noetic-ros-base /root/catkin_ws/src/clover/builder/standalone-install.sh
|
docker run --rm -v $(pwd):/root/catkin_ws/src/clover ros:noetic-ros-base /root/catkin_ws/src/clover/builder/standalone-install.sh
|
||||||
|
|
||||||
|
noetic-raw:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: ros:noetic-ros-base
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: catkin_ws
|
||||||
|
shell: bash
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: catkin_ws/src/clover
|
||||||
|
- name: Install pip
|
||||||
|
run: apt-get update && apt-get -y install python3-pip
|
||||||
|
- name: Install dependencies
|
||||||
|
run: rosdep update && rosdep install --from-paths src --ignore-src -y
|
||||||
|
- name: catkin_make
|
||||||
|
run: source /opt/ros/$ROS_DISTRO/setup.bash && catkin_make
|
||||||
|
- name: Run tests
|
||||||
|
run: source devel/setup.bash && catkin_make run_tests && catkin_test_results
|
||||||
|
- name: Install
|
||||||
|
run: source devel/setup.bash && catkin_make install
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<arg name="led" default="true"/>
|
<arg name="led" default="true"/>
|
||||||
<arg name="blocks" default="false"/>
|
<arg name="blocks" default="false"/>
|
||||||
<arg name="rc" default="false"/>
|
<arg name="rc" default="false"/>
|
||||||
<arg name="force_init" value="true"/> <!-- force estimator to init by publishing zero pose -->
|
<arg name="force_init" default="true"/> <!-- force estimator to init by publishing zero pose -->
|
||||||
|
|
||||||
<arg name="simulator" default="false"/> <!-- flag that we are operating on a simulated drone -->
|
<arg name="simulator" default="false"/> <!-- flag that we are operating on a simulated drone -->
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ function viewTopicsList() {
|
|||||||
let rosdistro;
|
let rosdistro;
|
||||||
|
|
||||||
function viewTopic(topic) {
|
function viewTopic(topic) {
|
||||||
|
let counter = 0;
|
||||||
let index = '<a href=topics.html>Topics</a>';
|
let index = '<a href=topics.html>Topics</a>';
|
||||||
title.innerHTML = `${index}: ${topic}`;
|
title.innerHTML = `${index}: ${topic}`;
|
||||||
topicMessage.style.display = 'block';
|
topicMessage.style.display = 'block';
|
||||||
@@ -51,10 +52,11 @@ function viewTopic(topic) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
new ROSLIB.Topic({ ros: ros, name: topic }).subscribe(function(msg) {
|
new ROSLIB.Topic({ ros: ros, name: topic }).subscribe(function(msg) {
|
||||||
|
counter++;
|
||||||
document.title = topic;
|
document.title = topic;
|
||||||
if (mouseDown) return;
|
if (mouseDown) return;
|
||||||
|
|
||||||
if (msg.header.stamp) {
|
if (msg.header && msg.header.stamp) {
|
||||||
if (params.date || params.offset) {
|
if (params.date || params.offset) {
|
||||||
let date = new Date(msg.header.stamp.secs * 1e3 + msg.header.stamp.nsecs * 1e-6);
|
let date = new Date(msg.header.stamp.secs * 1e3 + msg.header.stamp.nsecs * 1e-6);
|
||||||
if (params.date) msg.header.date = date.toISOString();
|
if (params.date) msg.header.date = date.toISOString();
|
||||||
@@ -62,7 +64,8 @@ function viewTopic(topic) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
topicMessage.innerHTML = yamlStringify(msg); // JSON.stringify(msg, null, 4);
|
let txt = `<div class=counter>${counter} received</div>${yamlStringify(msg)}`; // JSON.stringify(msg, null, 4);
|
||||||
|
topicMessage.innerHTML = txt;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
white-space: pre;
|
white-space: pre;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
.counter { color: #b9b9b9; margin-bottom: 1em; }
|
||||||
#topic-type { font-family: monospace; font-size: 0.5em; vertical-align: super; font-weight: normal; }
|
#topic-type { font-family: monospace; font-size: 0.5em; vertical-align: super; font-weight: normal; }
|
||||||
.topic { font-family: monospace; }
|
.topic { font-family: monospace; }
|
||||||
body.closed { background-color: rgb(207, 207, 207); }
|
body.closed { background-color: rgb(207, 207, 207); }
|
||||||
|
|||||||
Reference in New Issue
Block a user