Commit Graph

2575 Commits

Author SHA1 Message Date
Oleg Kalachev
b36292cdb8 blocks: add print-range example 2020-10-06 01:40:07 +03:00
Oleg Kalachev
a9f6fe329b docs: minor summary change 2020-10-06 01:38:19 +03:00
Oleg Kalachev
f89cc92736 docs: rename glossary articles back to glossary.md 2020-10-06 01:36:17 +03:00
Oleg Kalachev
60755fa1b5 gitbook: enable collapsible-menu (#270)
* gitbook: enable collapsible-menu

* Collapse main menu (en)

* Update events and supplementary materials articles

* Fix collapsed items of main menu

* Add Copter Hack 2021 article
2020-10-06 01:05:53 +03:00
Oleg Kalachev
792352d072 blocks: add flip example 2020-10-01 22:20:37 +03:00
Oleg Kalachev
2f6d9639c1 blocks: fix setpoint block 2020-10-01 22:20:26 +03:00
Oleg Kalachev
d52175bb30 docs: css cicle class 2020-10-01 05:10:26 +03:00
Oleg Kalachev
be6e894b80 docs: add led events table 2020-10-01 05:09:00 +03:00
Oleg Kalachev
2f6125ce54 Implement block programming (using Blockly) (#272)
* Clover Blockly: add first blocks set

* Adjust Blockly settings

* Fix get_position output type

* Add screenshot

* Rename readme.md to README.md

* Resize screenshot

* Add package.xml

* Little change

* Fixes

* Add python_compressed to blockly

* Implement some of the Clover blocks in Python

* Make Python indentation 4 spaces

* Fixes to Python blocks implementation

* Implement set_velocity block in Python

* Implement wait_arrival block in Python

* Fix indentation in Python implementation of blocks

* Fix

* Fix land_wait template

* Set reserved words in Python

* Change default frame_id to aruco_map in get_position block

* Fix

* Move blocks definitions to blocks.js

* Get rid of missing favicon error

* Simplify navigate

* Rearrange layout, add tabs

* Generate Python code

* Small style change

* -console.log

* Code style

* Use modules

* Move modules to the header

* Correct order for ROS definitions + generating "backend" code

* Fix rangefinder_distance block

* simple_offboard: commands to change only yaw and yaw rate

* Implement set_yaw block

* Start working on Blockly documentation

* Implement print block with a topic

* Unneeded code

* Little fixes

* Fix indentation

* Fixes

* Fix wait_arival, get_distance

* Implement running Blockly programs, implement prompt block, fixes

* Add land button

* Little change

* Fix reserved words + little fixes

* +x for main.py

* Simplify run button

* Auto-save and load workspace

* Make land button work

* Handle exceptions

* Minor change

* Add help URL for blocks

* Fix

* Implement arrived block

* Mark blockly and highlight.js as linguist-vendored

* Add forgotten CMakeLists.txt

* Add wait checkbox to set_yaw block

* Disable run button when disconnected

* Add message and service files

* Add some comments

* Add tooltip to some blocks

* Implement GPIO blocks

* Don’t latch print message to prevent duplication

* Prevent duplication prompts

* Add ROS init code to backend code anyways

* Make GPIO blocks color a constant

* Minor fix

* More correctly update blocks on input value changes

* Minor fixes

* Remove unneeded readonly attribute

* Add marker ID shadow blocks to toolbox

* Add lacking reserved words

* Fix frame id generation for complex marker id expressions

* Consider frame_id in set_yaw block

* Shorten ros module import

* Implement stop service

* Disable and enable run button correctly

* Don’t print KeyboardInterrupt exceptions

* Put notifications to notifications element

* Add 'running' mark

* Disable signal in backend python code

* Sleep a little bit to let rospy initialize publishers

* Remove accidental code

* Make ROS namespace and private namespace constants

* editorconfig-lint: don’t check Blockly code

* Use private namespace constant in Python generator

* Implement ~running topic to display current program status more robustly

* Make navigate tolerance and sleep time constants

* Make set_leds and and set_effect services proxies persistent

* Replace a number with constant

* Limit ~block topic publishing rate
Otherwise messages get queued making the frontend to freeze

* Improve internal documentation

* Append 'map' to frames list

* Return degrees in get_attitude block

* Move getting yaw in a separate block

* Improve block tooltips

* Add some more files to editorconfig-lint excludes

* Add get_yaw block to toolbox

* Implement get_time block

* Implement ~store and ~load services for storing user programs

* Set auto_arm only in take_off block

* Minor CSS fixes

* Make 'Python' tab textarea-like

* Implement saving and loading programs

* Adjust styles

* Retrieve only .xml files in load service

* Forgotten code

* Documentation on store and load services

* Add some examples

* Add blocks programming arg to launch file

* Update docs

* Add package’s dependencies

* Add dependency

* Add title to select

* Fix syntax

* Minor fix in docs

* Add forgotten roslib.js

* Run user program in the same process

* Use print function for print block in Python 2

* Add variables example

* Fix url

* Add functions example

* Fix set_servo block

* Fix gpio_read block

* Update blocks screenshot

* Update docs

* Update docs

* Fix set_effect block

* Minor fix in example

* Add setpoint block, remove set_velocity from toolbox

* Remove unused modules

* Unused variable

* Add English article skeleton

* Clarify backend node link error

* Remove unused variable

* Update documentation

* Fix link to documentation

* Add Blockly logo

* Update English article

* Add Blocks programming link to the main page

* Minor change

* Add catkin_install_python to CMakeLists.txt

* Make navigate tolerance and sleep time configurable

* Add minor todo

* Add blockly examples directory to editorconfig-lint excludes

* Rename main node to clover_blocks

* Add a warning to the old blocks programming article

* Fix editorconfig-lint exclude
2020-09-30 17:07:03 +03:00
Volga
c6a238c671 docs: fixed gpio port assignment 2020-09-10 14:46:58 +03:00
Volga
28851f39ad docs: add notice 2020-09-10 13:56:57 +03:00
Oleg Kalachev
4a2fbf3e22 docs: minor fixes 2020-09-08 17:01:13 +03:00
Oleg Kalachev
c3b549df0d docs: little titles fix 2020-09-03 01:17:25 +03:00
Oleg Kalachev
21d922beb2 simple_offboard: set main_camera_optical reference frame to map 2020-09-02 16:40:14 +03:00
Alamoris
88ef00e043 docs: translate flight articles (#269)
* docs: Add translation of the article about flight exercises

* docs: Add translation of the article about flight

* docs: Added articles about flying to summary

* docs: fix

* Update docs/en/flight.md

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* docs: fix

* Fix

* Remove unnecessary image borders

* Edit flight article

* Edit flight articles

* Fix

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-08-27 08:41:24 +03:00
Oleg Kalachev
1b85a9cdf2 docs: simplify laser rangefinder code sample 2020-08-26 18:25:58 +03:00
Oleg Kalachev
d5a79babad docs: add links to demo js gcs sources 2020-08-26 18:14:10 +03:00
alamoris
4d80e6f6cf docs: Small fixes 2020-08-25 19:05:44 +03:00
Oleg Kalachev
8ce4de191b docs: little fix 2020-08-25 17:32:13 +03:00
Oleg Kalachev
ecaab1650f docs: edit snippets articles 2020-08-21 22:46:39 +03:00
Oleg Kalachev
a62107132d docs: add wait_arrival snippet 2020-08-21 22:08:07 +03:00
Oleg Kalachev
423490304b docs: add link to Clover blocks development 2020-08-21 19:37:18 +03:00
Oleg Kalachev
ee9c956fc7 docs: add cloud simulator to projects 2020-08-21 19:28:31 +03:00
oponfil
14e49a4f7b docs: update projects article (#268)
* Update projects.md

Скорректировал статус по существующим проектам и добавил новые проекты.

* docs: edit projects article

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-08-21 19:21:29 +03:00
Oleg Kalachev
d4d25c61a2 docs: rework and simplify navigate_wait snippet, move it on top 2020-08-21 18:16:25 +03:00
Oleg Kalachev
106209d79b docs: add links to Python tutorials 2020-08-20 20:28:55 +03:00
Oleg Kalachev
333cf9655f docs: remove trailing whitespace 2020-08-20 20:09:32 +03:00
Oleg Kalachev
2ddf831842 docs: remove trailing whitespace 2020-08-20 20:07:35 +03:00
Oleg Kalachev
68f23babcc docs: more reasonable title 2020-08-20 20:06:44 +03:00
Alexey Rogachevskiy
4f0a099152 travis: Remove changelog generation 2020-08-13 22:53:44 +03:00
Alamoris
acfb858598 docs: add section about manual flight (#267)
* docs: Add article about flight

* docs: add flight lessons

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* Update docs/ru/flight.md

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>

* docs: Updates

* Edit flight article

* Move flight exercises to separate article

* sfalexrog edits

* docs: add exercise

* docs: update exercises

* docs: Some fixes

* Edit flight exercises article

* docs: Resize and change images

* Reduce images sizes more

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>
Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-08-12 04:45:45 +03:00
Alexey Rogachevskiy
c0f15fc1e6 clover.world: Shift parquet_plane down
This will make placing thin objects easier.
2020-08-11 23:26:58 +03:00
Alexey Rogachevskiy
e94e552da3 travis: Show compressed image size
Squashed commit of the following:

commit 3460fec25e
Author: Alexey Rogachevskiy <sfalexrog@gmail.com>
Date:   Mon Aug 10 00:19:05 2020 +0300

    travis: Use short commit notation

commit fa44e4b42f
Author: Alexey Rogachevskiy <sfalexrog@gmail.com>
Date:   Sun Aug 9 01:00:56 2020 +0300

    travis: Fix IMAGE_VERSION initialization

commit 4bc985a7f4
Author: Alexey Rogachevskiy <sfalexrog@gmail.com>
Date:   Sat Aug 8 21:26:06 2020 +0300

    travis: Generate zip file after successful build

commit c2bfa07a36
Author: Alexey Rogachevskiy <sfalexrog@gmail.com>
Date:   Fri Aug 7 17:36:56 2020 +0300

    travis: Fix parsing errors

commit 6ba27ef15d
Author: Alexey Rogachevskiy <sfalexrog@gmail.com>
Date:   Fri Aug 7 17:28:48 2020 +0300

    travis: Output compressed image size
2020-08-10 13:47:17 +03:00
Oleg Kalachev
6b5e3464f1 Remove info clover.service as it's only for Raspbian 2020-08-06 15:24:44 +03:00
Oleg Kalachev
768c0be5a5 Change running section in clover's readme 2020-08-06 14:56:49 +03:00
Oleg Kalachev
892c6f853b docs: add note on how to reset Clover package using git (ru, en) 2020-08-05 14:03:08 +03:00
Alexey Rogachevskiy
8b690900b9 simple_offboard: Ensure quaternion initialization 2020-08-04 14:51:40 +03:00
Alexey Rogachevskiy
17c210919d simple_offboard: relax position_msg timestamp update rules (#264)
* simple_offboard: Relax position_msg timestamp update rules

* Little code style change

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-08-04 13:19:58 +03:00
Alexey Rogachevskiy
ebeb3f58d6 docs/simulation_usage: Performance suggestions (#262) 2020-07-31 16:25:44 +03:00
Alexey Rogachevskiy
3b19346a44 docs: Add note about Gazebo in SITL articles (en/ru) 2020-07-30 17:31:56 +03:00
Dmitrii Okoneshnikov
32d27f3f66 Tried translating simulator articles (#259)
* Translation + fix broken links

* Fix broken links

* Changes

* Fixed some typos

* Fixed header

* docs/simulation_native: Stylistic changes, fix typo (ru)

* docs: Add old simulation_vm article (ru)

* docs: Update SUMMARY.md (ru)

* docs/simulation_native: Use main branch for simulation (ru)

* Fixed some stuff

* Update docs/ru/simulation_native.md

Co-authored-by: Ilya Petrov <38784273+copterspace@users.noreply.github.com>

* Fixed some stuff

* Removed extra spaces

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* Fixed typo

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* Fixed typo

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* Update docs/ru/simulation_vm.md

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* Removed extra spaces

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>

* Fixed typo

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>
Co-authored-by: Ilya Petrov <38784273+copterspace@users.noreply.github.com>
Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-07-29 13:08:19 +03:00
Alexey Rogachevskiy
585af026d4 docs/simulation_native: Use main branch for simulation (en) 2020-07-29 00:27:59 +03:00
Dmitrii Okoneshnikov
b52f702723 Fixed broken links (#258) 2020-07-27 17:06:24 +03:00
Dmitrii Okoneshnikov
3e4f1ab8a9 Fixed broken links (#257) 2020-07-27 17:05:43 +03:00
Dmitrii Okoneshnikov
513f4f419a Fixed broken link (#256) 2020-07-27 13:20:51 +03:00
Dmitrii Okoneshnikov
6db5602a5a Fix for errors occurred while running catkin_make (#255)
* Fix errors occurred while running catkin_make

* docs: Fix formatting, add reason for patching

Co-authored-by: Alexey Rogachevskiy <sfalexrog@gmail.com>
2020-07-27 12:50:14 +03:00
alamoris
fb17a3f926 docs: fix bolts size 2020-07-22 15:16:15 +03:00
Oleg Kalachev
70e1675f9a docs: fix 2020-07-22 15:09:42 +03:00
Alexey Rogachevskiy
e03eaa51c4 Add official Clover simulation config (#254)
* clover_description: Add preliminary configs/models

* clover_description: Use proper models for the drone

* clover_description: Be more specific about spawn arguments

* clover_description: Tweak parameters a bit, add collision boxes

* travis: Add .dae files to the list of ignored by eclint

* Add clover_simulation package

* clover: Add Gazebo plugin sources

* builder: Ignore clover_gazebo_plugins for actual drone

* clover_gazebo_plugins: Expose include directories for plugins

This should fix building the unit tests

* clover_gazebo_plugins: Remove dependency on gazebo_ros

This should prevent RPi image failing to build.

* travis, gitattributes: Mark clover_gazebo_plugins as vendored, stop checks

* clover_simulation: Minor package.xml fix

* clover_description: Add IMU joint preservation

Oh, Gazebo, you are ever so very helpful, it's hard to put my appreciation into words! If not for your helpful model simplification, I wouldn't have spent two hours looking through the plugin sources, the urdf sources, trying lots of
different options for the joints and links, and finally getting an answer from GazeboOverflow or however you've named your Q&A site. How wonderful it is to have an issue that makes you tear your hair out just because you know
what's better for me!

* clover_simulation: Add the bare necessities to run a simulation

* clover_gazebo_plugins: Prevent gazebo from trying to download models

For some reason the models are no longer available, so Gazebo just spends some time waiting for a timeout.

* clover_gazebo_plugins: Update Gazebo model database URI

* clover_simulation: Add script to find and launch PX4

* clover_simulation: Fix launch file

* clover_description: Add missing plugins

* simulation: Re-enable gazebo_ros dependencies

This will force rosdep to try to install gazebo_ros on the drone,
but this can be counteracted by --skip-keys rosdep option.
This does not look reliable, but I could not come up with a better
solution.

* builder: Be more resilient about apt-get errors

* builder: Remove reference to resolve_rosdep

* clover_description: Update Clover model, change xacro description

Previous xacro description file was not performing too well, so I went with
a more sensible route and started changing iris.xacro to use our Clover model.

* clover_description: Bring back constants.xacro

* clover_description: Prevent lumping for camera link/joint

* clover_description: Move near clipping plane further away

* clover_description: Allow setting width/height for rpi_cam

* clover_description: Add a Clover model with a camera

* clover_description: Remove whitespaces

* clover_description: Add drone+camera spawning .launch file

* clover_simulation: Add gazebo_ros here as well

* clover_simulation: Spawn drone with camera by default

* clover_simulation: Allow specifying data path for px4

* clover_simulation: Add startup scripts from px4

Big TODO: Clean them up eventually

* clover_simulation: Use local data files

* clover_simulation: Launch clover services by default

* clover_description: Depend on gazebo_plugins as well

libgazebo_ros_camera is in gazebo_plugins, so we need that package.

* clover_description: Fix camera_sensor description

* clover_description: Fix typo in package.xml

* clover_simulation: rename sim_gazebo.launch to simulator.launch

* clover_simulation: Don't look for ROMFS in px4_source_path

We provide our own, no reason to fail if we can't find the originals.

* clover_simulation: Remove extra CMakeLists.txt

* clover_description: Use xacro: namespace for xacro macros

* clover_description: Fix package.xml formatting

* clover_description: Better camera defaults

* clover_description: Add distance sensor

* clover_description: Add leg colliders

* clover_simulation: Actually forward vehicle name

* clover_description: Revert adding additional colliders

Unfortunately, this breaks physics too much

* clover_description: Tweak drone physics, make it more bouncy

* clover_description: Don't spawn the drone inside the floor

* clover_description: Set rangefinder min range outside drone collider

* clover_simulation: Set default flow parameters for Clover

* clover_description: Update Clover 4 model

* clover_simulation: rename sim_gazebo.launch to simulator.launch (#233)

* clover_simulation: Add workaround for Gazebo crashes in VMware

* clover_simulation: Ignore .git for now

* clover: Add "simulated" argument

* clover_simulation: Start Gazebo early

* clover_gazebo_plugins: Remove unused files

* clover_description: Allow turning sensors on and off

* clover_description: Fix rangefinder creation

* Remove unneeded stuff and use PX4 from catkin workspace

* Remove clover_gazebo_plugins

* Rename arg simulated to simulator

* clover: Change target names to avoid clashing with PX4

* Fix

* clover_simulation: Re-add deleted comments

* Add loop model

* loop.material: use tabs instead of spaces

* loop model: don’t rotate by yaw

* loop.material: turn on alpha_blend

* Rename model loop to loop_line

* Add parquet plane model

* loop_line: fix description

* Set alpha_blend for loop_solid material

* Add square line model

* Add CATKIN_IGNORE to models directory

* Add LED strip Gazebo model

* Add hardcoded URDF LED strip

* clover_description: Add LED xarco model

clover_simulation: Implement LED visual plugin and controller

* clover_simulation: Make led plugin less chatty

* clover_simulation: Depend on led_msgs

This should allow the packages to be built in the proper order.

* clover_simulation: Support building against Kinetic

* clover_simulation: Don't build plugins if Gazebo is not installed

* clover_description: Get rid of "constants" file

* clover_description: Add README

* clover_simulation: Add README

* clover_simulation: Make parquet thicker

Otherwise the rangefinder beam goes right through it.

* docs: Start working on simulation articles

* docs: Start working on the simulation overview (en)

* Add launch-file for PX4 v1.8.2

* clover_simulation: Disable GPS, use EKF2 by default

Ideally we should be using LPE, but it is broken in PX4 1.10, and our need for a somewhat working simulator is higher than for a completely correct one.

* clover_simulation: Add experimental throttling camera

* clover_simulation: Add note about throttling camera

* clover_description: Remove unused file

* clover_simulation: Link against CameraPlugin

* clover_description: Add option to use throttling_camera

* Add clover.world

* clover_description: Add calculated inertial parameters

* simulator: change default world to clover.world

* clover_simulation: Start working on ArUco generation script

Port over aruco_gazebo_gen, add more options.
Does not modify the world right now.

* clover_simulation: Make LED plugin less chatty

* clover_description: Be more ROS-like in script naming

* clover_simulation: Implement model insertion to the world

* clover_simulation: Allow specifying output model dir

* clover_description: Don't use throttling camera by default

throttling camera is still a work-in-progress, there's no reason to
enable it by default.

* clover_simulation: Use proper script name in CMakeLists

This is what typically happens when I'm rushed.

* docs: Add instructions for VM setup (en)

* clover_simulation: Remove extra spaces

* docs: Describe simulation usage (en)

* clover_simulation: Remove led_strip

* docs/assets: Crunch sim image a bit

* clover: Bump VL53L1X version

For some reason, 0.0.2 is not installable on x86.

* docs/simulation: Fix capitalization

* Remove remnants of clover_gazebo_plugins

* Remove unneeded Clover 3 model

* Remove empty.world and asphalt_plane model

* Remove unused LED strip model

* Reduce images size

* Shortened simulator related urls

Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
2020-07-22 09:17:56 +03:00
Oleg Kalachev
b346af92ae docs: add missing z parameter 2020-07-21 23:23:52 +03:00