Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ros kinetic and turtlebot under Ubuntu16.04 system

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to install ros kinetic and turtlebot under the Ubuntu16.04 system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

1. TX1 has just finished brushing the machine, so you can only add the source manually: execute the three commands in the following figure, and then add the template to source.list. To add a different source, see wiki.ubuntu.org.cn/ template: 16.04source

2. Download Google browser:

Sudo add-apt-repository ppa:chromium-daily/stablesudo apt-get updatesudo apt-get install chromium-browser

3. Install ros kinetic:

Sudo sh-c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release-sc) main" > / etc/apt/sources.list.d/ros-latest.list'sudo apt-key adv-keyserver hkp://ha.pool.sks-keyservers.net:80-recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116sudo apt-get updatesudo apt-get install ros-kinetic-desktop-full

4. Configure kinetic

Sudo rosdep initrosdep updateecho "source / opt/ros/kinetic/setup.bash" > > ~ / .bashrc

If there is an error in executing sudo rosdep init, execute sudo c_rehash / etc/ssl/certs

5. To install turtlebot, refer to http://www.ncnynl.com/archives/201612/1148.html

Note: (1) permission problems may occur when executing rosdep install-- from-paths src-I-y. Execute sudo chmod 777-R ~ / .ros/

(2) there will be errors when compiling kobuki and turtlebot, and there may be differences between kinetic and indigo. If you look carefully at the file where the problem lies, you will find that there are three problem files:

~ / turtlebot/src/turtlebot_create_desktop/create_gazebo_plugins/src/gazebo_ros_create.cpp

~ / kobuki/src/kobuki_desktop/kobuki_gazebo_plugins/src/gazebo_ros_kobuki_loads.cpp

~ / kobuki/src/kobuki_desktop/kobuki_gazebo_plugins/src/gazebo_ros_kobuki_updates.cpp

These three files are all nodes used in gazebo simulation, thinking that we want to connect physical objects and do not need a policy, so I changed the CMakeLists.txt of the corresponding nodes and did not compile these three nodes, so the compilation passed smoothly. (it bothered me all day and had to do it.)

6. Turtlebot is installed, connect TX1 with turtlebot, and use notebook to control turtlebot remotely.

Use the official website tutorial to configure the network: http://wiki.ros.org/turtlebot/Tutorials/indigo/Network%20Configuration

Then run it on TX1:

Roslaunch turtlebot_bringup minimal.launch-screen

Run on a remote computer:

Roslaunch turtlebot_teleop keyboard_teleop.launch-screen

The control of turtlebot can be completed.

Note: computers and TX1 must be connected to the same router, do not connect to the same switch, otherwise they are not on the same network segment.

This is the end of the introduction of "how to install ros kinetic and turtlebot under the Ubuntu16.04 system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report