NCRL_10
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • 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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control 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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Husky setting in ROS melodic ###### tags: `husky` ## ROS install Husky ==setup== ```bash= cd ~/catkin_ws/src ***% comment your catkin workspace name here is mine is (catkin_ws)*** git clone https://github.com/husky/husky.git git checkout melodic-devel cd .. catkin_make sudo apt-get install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-ros-control sudo apt-get install ros-melodic-multimaster-launch sudo apt-get install ros-melodic-lms1xx rosdep install --from-path src --ignore-src catkin_make source devel/setup.bash rosrun husky_bringup install ``` ==setting priority for port== ```bash= sudo chmod 777 /dev/ttyUSB0 sudo usermod -a -G dialout [username] ``` ## Joystick setting ==port== * `/dev/input/js0` * test the joystick : * `jstest /dev/input/js0` * modify `husky/husky_control/config/teleop_ps4.yaml` and replace line 13 `dev: /dev/input/ds4x` as `dev: /dev/input/js0` ==control== * modify `husky/husky_base/launch/base.launch` and replace line 29 `/dev/prolific ` as `dev/ttyUSB0` * `roslaunch husky_base base.launch` * hold LB/RB on joystick and push left analog stick control the velocity and turn rate. ## PX4 imu setting #### Install Mavros ```bash= sudo apt-get install ros-melodic-mavros ros-melodic-mavros-extras screen openssh-server git # 如果出現:GeographicLib exception: File not readable... sudo /opt/ros/melodic/lib/mavros/install_geographiclib_datasets.sh # about serial port problem sudo usermod -a -G tty "USER_name" ex: sudo usermod -a -G tty ncrl sudo usermod -a -G dialout "USER_name" # 更改為fcu_url:="/dev/ttyACM0:921600" sudo gedit /opt/ros/melodic/share/mavros/launch/px4.launch # 配合Qground的parameter裡的baud rate也需要改 # 如果出現:FCU: DeviceError:serial:open: Permission denied chmod 777 /dev/ttyACM0 # test roslaunch mavros px4.launch # 確認是否回傳 IMU detected 和 /mavros/imu/data_raw # 如果沒有回傳就斷開 pixhawk 的 type C 並重新接上 ``` px4相關設參考:https://hackmd.io/TNvNXB9sQoilNvrLHINYDw ## Lidar Velodyne VLP16 setting 使用網路線連接lidar與電腦 新增網路: Address:192.168.1.100 Netmask:255.255.255.0 Gateway:0.0.0.0 ![](https://i.imgur.com/XH9e6jL.png) 設定後開啟瀏覽器輸入網址:192.168.1.201 ![](https://i.imgur.com/VkhctcE.png) ### install ROS dependencies and VLP-16 driver ```bash= sudo apt-get install ros-VERSION-velodyne cd ~/catkin_ws/src/ && git clone https://github.com/ros-drivers/velodyne.git rosdep install --from-paths src --ignore-src --rosdistro melodic -y cd ~/catkin_ws/ && catkin_make ``` ### Viewing the data ```bash= roslaunch velodyne_pointcloud VLP16_points.launch #check rostopic 是否有點雲資料 rostopic echo /velodyne_points #view the data in rviz rosrun rviz rviz -f velodyne ``` ### rviz設定 1. In the "displays" panel, click "Add", then select "Point Cloud2", then press "OK". 2. In the "Topic" field of the new "Point Cloud2" tab, enter "/velodyne_points". ![](https://i.imgur.com/QrPa1LC.png) 參考連結:http://wiki.ros.org/velodyne/Tutorials/Getting%20Started%20with%20the%20Velodyne%20VLP16 ## install NCRL_lio ### Prerequisites 1.ceres 2.PCL ### 安裝ceres 注意 須下載1.14.0版本,可在官方github切換版本。 官網:http://ceres-solver.org/installation.html ```bash= git clone https://ceres-solver.googlesource.com/ceres-solver git checkout 1.14.0 # CMake sudo apt-get install cmake # google-glog + gflags sudo apt-get install libgoogle-glog-dev libgflags-dev # BLAS & LAPACK sudo apt-get install libatlas-base-dev # Eigen3 sudo apt-get install libeigen3-dev # SuiteSparse and CXSparse (optional) sudo apt-get install libsuitesparse-dev mkdir ceres-bin cd ceres-bin cmake ../ceres-solver make -j3 sudo make test # Optionally install Ceres, it can also be exported using CMake which # allows Ceres to be used without requiring installation, see the documentation # for the EXPORT_BUILD_DIR option for more information. sudo make install ``` ### 安裝PCL 注意 須下載1.8.1版本以上,可在官方github切換版本。 ```bash= git clone https://github.com/PointCloudLibrary/pcl.git git checkout pcl-1.8.1 #安裝以下第三方程式 sudo apt-get update sudo apt-get install git build-essential linux-libc-dev sudo apt-get install cmake cmake-gui sudo apt-get install libusb-1.0-0-dev libusb-dev libudev-dev sudo apt-get install mpi-default-dev openmpi-bin openmpi-common sudo apt-get install libflann1.8 libflann-dev sudo apt-get install libeigen3-dev sudo apt-get install libboost-all-dev sudo apt-get install libvtk6-dev sudo apt-get install libqhull* libgtest-dev sudo apt-get install freeglut3-dev pkg-config sudo apt-get install libxmu-dev libxi-dev sudo apt-get install mono-complete sudo apt-get install qt-sdk openjdk-8-jdk openjdk-8-jre sudo apt-get install libflann-dev #進行編譯 cd pcl mkdir release cd release cmake -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_GPU=ON-DBUILD_apps=ON -DBUILD_examples=ON \ -DCMAKE_INSTALL_PREFIX=/usr .. make -j6 sudo make install ``` ### install ncrl_lio ```bash= cd catkin_ws/src git clone https://github.com/SLAM-NCRL/ncrl_lio.git catkin_make ``` * 修改ncrl_lio/config/run.yaml 將31到33行參數,修改內容為IMU到Lidar的x,y,z距離 * 修改ncrl_lio/launch/run.launch 將第6行<param name="use_sim_time" value="true"/> 更改為<param name="use_sim_time" value="false"/> ## Testing ```bash= #開啟手把控制 roslaunch husky_base base.launch #打開px4 IMU roslaunch mavros px4.launch #打開 Lidar roslaunch velodyne_pointcloud VLP16_points.launch #開啟ncrl_lio roslaunch ncrl_lio run.launch ``` * 須確認行進路徑與rviz上顯示路徑的是否正確

    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