smithhenryd
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Encoding Equivariance (Part 2) ## Adding Magnitude of Velocity Vector Adding the magnitude of the U1's velocity vector greatly changes the shape of the predicted force function. In general, drones that make quick passes under U2 experience only an outward "push" force, whereas those that make slower passes also experience a "pull" force after the "push" force. ![](https://i.imgur.com/17N7Y3G.png) ![](https://i.imgur.com/mEQGV5w.png) ## On Model Training ![](https://i.imgur.com/k5qUTEQ.png) ![](https://i.imgur.com/JI5UWkP.png) **Right now**: Loss is minimized very early-on in training, but our model does not overfit to the noise (approximately $0.2 m/s^2$). The validation loss is only slightly larger than the training loss. **What this means**: Our function class is not too rich, since otherwise we would overfit to the training data and the validation loss would be large. This is a result of the spectral normalization mentioned last week. ## Force Prediction Model (Nonstationary Leader Drone) Previously, we assume that the top drone is stationary (i.e. has $\mathbf{v}^{(2)} = \mathbf{0}$), and so there is an axis of rotational symmetry that corresponds to $\mathbf{d} = (0,0,-1)^T$. As Jennifer and Ajay keenly pointed out, this will change once $\Vert \mathbf{v}^{(2)} \Vert_2 \gg 0$. First, the axis of symmetry will depend upon the velocity vector of the top drone. Secondly, the force function will not necessarily be rotationally symmetric about this axis. Instead, as we will illustrate, we only get symmetry about a halfspace. We discuss how we will model the sufferer drone's forces in this case: 1. The velocity vector of the top drone, $\mathbf{v}^{(2)}$, determines its deck angle, $\xi$. Then we can find the unit vector $\tilde{\mathbf{v}}$ that lies in the plane $\mathcal{H} = \text{span}\{\mathbf{v}^{(2)}, \mathbf{d}\}$ and has angle $\xi$ with $\mathbf{v}^{(2)}$. ![](https://i.imgur.com/55nrBgl.png) 2. This vector $\tilde{\mathbf{v}}$ becomes the first in an orthonormal basis we will construct. So long as $\langle \mathbf{v}^{(2)}, \mathbf{d} \rangle \neq 0$, then $\mathcal{H}$ contains a unit vector $\mathbf{w}_1$ which is orthogonal to $\tilde{\mathbf{v}}$. We complete our orthonormal basis by finding the unit normal vector to $\mathcal{H}$: $\mathbf{w}_2 = \tilde{\mathbf{v}} \times \mathbf{w}_1/\Vert \tilde{\mathbf{v}} \times \mathbf{w}_1 \Vert_2$. Now we can convert any vector $\mathbf{x}$ in the standard basis to our new basis $\{\tilde{\mathbf{v}}, \mathbf{w}_1, \mathbf{w}_2 \}$ according to $$\mathbf{B} \mathbf{x}, \quad \mathbf{B} = [\tilde{\mathbf{v}}, \mathbf{w}_1, \mathbf{w}_2]^T.$$ Note that $\mathbf{B}$ is an orthogonal matrix, and so we can efficiently convert back to original coordinate system according to $\mathbf{B}^{-1} = \mathbf{B}^T$. In particular, let us fix a value along the $\tilde{\mathbf{v}}$ axis and consider the bottom, drone's position in the $\mathbf{w}_1-\mathbf{w}_2$ plane. The cross section of the force function with this plane is a circle. This brings us to two possible formulations of the model's symmetry. First, similar to the stationary case, we can assume rotational symmetry about the $\mathbf{w}_1-\mathbf{w}_2$ axes. Therefore, we parameterize the force function on this plane according to (1) the magnitude of the drones' relative position vector and (2) the cosine of the angle between the relative position vector and sufferer drone's velocity vector. Assuming rotational symmetry seems reasonable for small velocity vectors $\mathbf{v}^{(2)}$. ![](https://i.imgur.com/fR36XtK.jpg) 3. Otherwise, we only assume that the true force function on this plane is symmetric only about the axis $\mathbf{w}_2$. In this case, we parameterize the force function evaluated on this plane according to (1) the angle the sufferer drone's relative position vector forms with the $\mathbf{w}_1$ axis, (2) the magnitude of the drones' relative position vector, and (3) the absolute angle (not the cosine) between the relative position vector and the sufferer drone's velocity vector. ![](https://i.imgur.com/v7QhAMk.png) 4. This neural network maintains the same rotational equivariance properties as the geometric graph neural network (geometric GNN) with two nodes: $$f_{\Theta}(\mathbf{R}\mathbf{v}) = \mathbf{R}f_{\Theta}(\mathbf{v}), \quad \mathbf{v} = [\mathbf{v}^{(1)}, \mathbf{v}^{(2)}, \Delta \mathbf{p}]^T,\quad \mathbf{R} \in H \leq G = \text{SO}(3),\quad H \cong SO(2).$$ ![](https://i.imgur.com/GIiZLYR.jpg) But if we assume rotational symmetry about $\tilde{\mathbf{v}}$, we get stronger equivariance properties. In particular, we also have $$f_{\Theta}(\tilde{\mathbf{R}} \mathbf{v}^{(1)}, \tilde{\mathbf{R}} \Delta \mathbf{p}, \mathbf{v}^{(2)}) = \tilde{\mathbf{R}}f_{\Theta}(\mathbf{v}^{(1)}, \Delta \mathbf{p}, \mathbf{v}^{(2)}),\quad \tilde{\mathbf{R}} \in \tilde{H} \leq \tilde{G} \cong \text{SO}(3),\quad \tilde{H} \cong SO(2),$$ where $\tilde{G}$ is the group of three-dimensional rotations about the axes $\tilde{\mathbf{v}}-\mathbf{w}_1-\mathbf{w}_2$ and $\tilde{H} \leq \tilde{G}$ are those rotations in $\tilde{G}$ that fix the $\tilde{\mathbf{v}}$ axis. Clearly, $G \cong \tilde{G} \cong \text{SO}(3)$ and $H \cong \tilde{H} \cong \text{SO}(2)$ . Otherwise, we only have $$f_{\Theta}(\tilde{\mathbf{S}} \mathbf{v}^{(1)}, \tilde{\mathbf{S}} \Delta \mathbf{p}, \mathbf{v}^{(2)}) = \tilde{\mathbf{S}}f_{\Theta}(\mathbf{v}^{(1)}, \Delta \mathbf{p}, \mathbf{v}^{(2)}),\quad \tilde{\mathbf{S}} \in \tilde{K} \leq \tilde{H} \leq \tilde{G} \cong \text{SO}(3),\quad \tilde{K} \cong SO(1) \cong C_2,$$ where $\tilde{K}$ are those elements in $\tilde{H}$ that fix the $\tilde{\mathbf{w}}_1$ axis (i.e. the reflection across the $\tilde{\mathbf{v}}-\tilde{\mathbf{w}}_1$ plane). Note that $\tilde{K}$ is a finite group that is isomorphic to the cyclic group of order 2, $C_2$. This might be limiting, since $\tilde{H}$ is a group of infinite order (we are encoding 'infinitely many' invariances), whereas $\tilde{K}$ is a group of finite order (we are only encoding 'finitely many' invariances). ## Two-drone Autonomous Flight, Outdoors We fly two drones autonomously outdoor and test both random walk and hover trajectories. Apologies for the poor image quality (my bad): ![](https://i.imgur.com/RcZ1h20.jpg) ## Two-drone Flight with Force Compenation, Indoors We compute estimated force onboard the sufferer drone (by evaluating the equivariant neural network trained with spectral normalization $\gamma = 2$), but do not apply it to the control inputs. ![](https://i.imgur.com/v8OBXDJ.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully