Road ROS learning (c) programming test preparation

According to the author Ku ranking · ROS 21 Getting speak learning organize and refer to "ROS robotics development practices," a book.

Create a workspace

  • [Note] This section may refer Ku ranking · ROS 21 Getting speak Lecture 9
  • Create a workspace
    • $ mkdir -p ~/myWorkSpace/src
    • $ cd ~/myWorkSpace/src
    • $ catkin_init_workspace
  • Compile workspace
    • $ cd ~/myWorkSpace/
    • $ catkin_make
    • $ catkin_make install
  • Creating inspection results

    myWorkSpace
    ├── build
    ├── devel
    ├── install
    └── src

  • Set Environment Variables
    • $ source devel/setup.bash
  • Check the Environment Variables
    • $ echo $ROS_PACKAGE_PATH

Creating Feature Pack

  • [Note] This section may refer Ku ranking · ROS 21 Getting speak Lecture 9
  • Creating Feature Pack
    • $ cd ~/myWorkSpace/src
    • $ catkin_create_pkg <package_name> [depend1][depend2][...]
      • E.g:$ catkin_create_pkg learning_topic roscpp rospy std_msgs geometry_msgs turtlesim
  • Compile Feature Pack
    • $ cd ~/myWorkSpace
    • $ catkin_make
  • Re-set the environment variable
    • $ source ~/myWorkSpace/devel/setup.bash
  • Check the environment variables again
    • $ echo $ROS_PACKAGE_PATH

RoboWare Studio IDE

  • installation
    • In support of Python-related functions, you need to install pylint.
      • $ sudo apt-get install python-pip
      • $ sudo python -m pip install pylint
    • To support clang-format-related functions, you need to install version clang-format-3.8 or higher.
      • $ sudo apt-get install clang-format-3.8
    • In the Github / TonyRobotics / RoboWare download the latest version RoboWare Studio, double-click the .deb file.
  • Tutorial documentation
Released three original articles · won praise 1 · views 1616

Guess you like

Origin blog.csdn.net/mashaocong/article/details/104106756