导航

    蓝鲸ROS机器人论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 热门
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    xiaoqiang tutorial (4) Inertial navigation test

    产品服务
    1
    1
    1268
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • weijiz
      weijiz 最后由 weijiz 编辑

      Xiaoqiang Homepage

      inertial navigation test

      In the previous tutorial, we have maked a 3D model of xiaoqiang, we will start to test xiaoqiang’s inertial navigation function. The inertial navigation here is to use Xiaoqiang’s own inertial sensors (acceleration and gyroscope) and encoder information to locate. The required ROS packages are:

      1. Driver xqserial_server
      2. Robot model package xiaoqiang_udrf
      3. Inertial Navigation Test Package nav_test.

      Below is the final result of the tutorial.

      the structure of ROS navigation stack is shown in the following two figures: If you are not familiar with the ROS navigation stack, please move to this tutorial

      0_1536150454172_1eda39fe-351a-493f-bfee-81f28aadb8d6-image.png

      0_1536150487780_a7ebf547-5a4e-4c70-9de1-f8c90251a6d1-image.png

      1. remote operation on Xiaoqiang host

      Please ensure that Xiaoqiang has started normally. Xiaoqiang host will automatically run the three software packages mentioned after normal startup. You don’t need to launch the corresponding launch file manually. If you don’t have the three packages installed, please install and upgrade these three software packages yourself. Then update the startup task (please refer to the robot_upstart tutorial) and restart it.

      a. Open a new terminal and start the navigation program

      ssh -X xiaoqiang@192.168.xxx.xxx 
      # Restart the service program, some program may not be running
      sudo service startup restart
      roslaunch nav_test fake_move_base_blank_map.launch
      

      If there is an error saying “You must specify at least three point for the robot footprint”, Just ignore it. This is because foot_print requires setting a shape, so at least three points are required. foot_print is the outline shape of the robot. This parameter is used to avoid obstacles. Xiaoqiang’s foot_print sets a circle, so there is no need to specify three points. If the tf tree that appears is not the same as the following figure, please check whether the drive is running normally.

      b. Open a new terminal and check if all tf are in place

      ssh -X xiaoqiang@192.168.xxx.xxx
      rosrun tf view_frames
      evince frames.pdf
      

      If the output looks like following

      0_1537605013399_db30edf1-b48b-44ed-b1fc-9b77f5e48ad3-image.png

      Follow the prompts to select one view_frame.

      Normal will show the following picture

      0_1536150582423_36bde49d-7021-467b-b79c-51987943f19e-image.png

      2. Operation completed on the local machine

      The local machine must be a Ubuntu system with corresponding ROS installed. Please refer to Section 1.2 of Tutorial (1) to install Xiaoqiang System Image. At the same time, it is guaranteed to be in the same local area network as Xiaoqiang. Because it is necessary to use rviz to display the Xiaoqiang pose and path trajectory in rviz on the local window (the rviz cannot be directly opened in ssh), a distributed network configuration of ROS is needed, and the robot model package xiaoqiang_udrf is also required to be installed on the local machine. In summary: The local machine opens its own rviz, receives and displays the topic on the Xiaoqiang host, and the Xiaoqiang model data is obtained directly from the local. The specific process is as follows:

      a. Open a terminal in the local, add Xiaoqiang’s ip in the local hosts file

      sudo gedit /etc/hosts
      # Add to 
      xxx.xxx.xxx.xxx xiaoqiang-desktop  # Please change xx to actual ip
      

      b. Open a new terminal input

      export ROS_MASTER_URI=http://xiaoqiang-desktop:11311
      # Continue to execute
      rostopic list
      

      If you can see Xiaoqiang’s topic, it means the configuration is successful.

      d. Users who installed Xiaoqiang system image do not need perform this step. Install the model package, update the local ROS package environment variable, because the model data needs to be read from the local

      mkdir  ~/Documents/ros/src
      cd  ~/Documents/ros/src
      catkin_init_workspace
      git clone https://github.com/BlueWhaleRobot/xiaoqiang_udrf.git
      #Xiaoqiang pro user switches to the master branch
      cd xiaoqiang_udrf
      git checkout master
      #Xiaoqiang mini user switches to mini branch
      cd xiaoqiang_udrf
      git checkout mini
      # xiaoqiang XQ5 user switchs to lungu branch
      cd xiaoqiang_udrf
      git checkout lungu
      # Completion of the installation
      cd ..
      cd ..
      catkin_make
      

      e. Open the rviz.

      export ROS_MASTER_URI=http://xiaoqiang-desktop:11311
      source ~/Documents/ros/devel/setup.sh  
      rviz
      

      When the window opens, click on file->open in the upper left corner and select the /home/xiaoqiang/Documents/ros/src/nav_test/config/nav.rviz file in Xiaoqiang. At this time, the interface should be displayed as shown below. Please refer to the previous tutorial for how to access the files on the Xiaoqiang host.

      0_1536150749799_207116e1-ab75-44f6-9fda-ab225713e5eb-image.png

      3. Complete the last operation in the remote host ssh window

      rosrun nav_test square.py
      

      If Xiaoqiang cannot move, check if the platform driver is working properly. You can enter rostopic echo /system_monitor/report If there is a voltage display, the platform drive is normal.如If it still cannot be moved, you can check whether Xiaoqiang infrared sensor is triggered or not. The infrared sensor will glow red when triggered.

      4. Now you can see the video effect at the beginning of the article in rviz, enjoy it!

      Xiaoqiang Homepage
      Back To Index

      1 条回复 最后回复 回复 引用 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community