[ROS]run DR robot in ROS - installing note2
Installation history to run DR robot in ROS
Feb 22, 2024
DR source required
ros-noetic && Ubuntu 20.04 version
ros2-foxy&& Ubuntu 20.04 version
ROS-related files and other pre-run checksโ
Installing ROS netoic in Ubuntu20.04 Environment with Window 10 โ WSL1(2)Update of graphics tools is required to run Rviz, gazebo, etcWSL2 ActivationYou need to download the Linux kernel package when it's WSL2.Enable to run Ubuntu version list in WSLError - Turned off as soon as rviz turns onInstall the following X-server program because the Rivz gaezo GUI is not visible in WSLRun ROSCORE!๐จ๐ปโ๐ป Result๐ Reference
ROS-related files and other pre-run checks
apt upgrade
โ Avoid using the ROS version because it is fixedapt update
updates the list of packages to the latest, and apt upgrade
upgrades the packages currently installed on your system to the latest version. It is usually a good habit of managing packages to perform an upgrade after an update.source ~/catkin_ws/devel/setup.bash
โ The source ~/catkin_ws/devel/setup.bash
command is used to execute the contents of the setup.bash script in your ROS workspace (catkin_ws). This command is typically run in your terminal to set up the environment variables and paths required for ROS to work with the packages and executables in your workspace.roscore
โ Start ros packageโ Installing ROS netoic in Ubuntu20.04 Environment with Window 10 โ WSL1(2)
Finally this method can run DR source in ROS
I tried installing ROS through Windows WSL.
Update of graphics tools is required to run Rviz, gazebo, etc
Install for each GPU company
After downloading, installing and rebooting
WSL2 Activation
WSL1 is enabled by default on Windows, which is set to enable WSL2
Open Windows PowerShell as administrator and type the command below
>> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart >> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enable WSL2 by default
>> wsl --set-default-version 2
You need to download the Linux kernel package when it's WSL2.
WslRegisterDistribution failed with error: 0x800701bc
โ Install when the following error message occurs during installation
โข WSL2 Linux kernel update package for x64 machines์ค์น ๊ฐ๋ฅํ ๋ฒ์ ํ์ธ
Additionally
- Hyper-V (I donโt know why but this function not exist in WIndows11 Home edition)
- Windows Hypervisor Platform
- Virtual machine platform
For your information, "Turn on/off Windows" comes out as soon as you search by pressing Win+S.
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fblog.kakaocdn.net%252Fdn%252FvsE22%252FbtrC9JTJ8h4%252F4w9QbkbcsDJZ5x8DvtnLMK%252Fimg.png%3Ftable%3Dblock%26id%3Ded4f1a93-b8a7-443c-a0fc-18ed513378cf%26cache%3Dv2&w=3840&q=75)
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fblog.kakaocdn.net%252Fdn%252FLkiWI%252FbtrC6IWJUkc%252FGNRiIqanjFz68ffq5PUwt1%252Fimg.png%3Ftable%3Dblock%26id%3D09d94bc9-1c2b-40b7-b4a7-cc8f1921354e%26cache%3Dv2&w=3840&q=75)
Enable to run Ubuntu version list in WSL
wsl -l -o
Check the enable the version by use command wsl --unregister <name_version>
โ Delete previously deleted Linuxwsl --install -d <name_version>
Open Ubuntu terminal()
Installation from ROS1
You can follow same as โ If your OS is a Ubuntu, pls follow this guideline
After install the ROS,
make a directory
home/<name>/catkin_ws/src
### We recommand the /home/<user_home>/catkin_ws/src cd ~/catkin_ws/src git clone https://github.com/doosan-robotics/doosan-robot rosdep install --from-paths doosan-robot --ignore-src --rosdistro noetic -r -y ##### Serial Package source build ### Noetic distro does not support serial package, so you have to install it manually. cd ~/catkin_ws/src git clone https://github.com/wjwwood/serial.git
Setting environmental variables (WSL2 operates without additional modifications)
nano ~/.bashrc
and add those commands in very bottom lineexport CATKIN_WS_PATH=~/catkin_ws export ROS_PACKAGE_PATH=$CATKIN_WS_PATH/src/doosan-robot:$ROS_PACKAGE_PATH export DISPLAY_NUMBER="0.0" export LIBGL_ALWAYS_INDIRECT= export DISPLAY=:0 alias noetic="source /opt/ros/noetic/setup.bash"
Installation of the packages required to run (installation takes time)
sudo apt-get install ros-noetic-rqt* ros-noetic-moveit* ros-noetic-gazebo-ros-control ros-noetic-joint-state-controller ros-noetic-effort-controllers ros-noetic-position-controllers ros-noetic-ros-controllers ros-noetic-ros-control ros-noetic-joint-state-publisher-gui ros-noetic-joint-state-publisher
sudo apt install python3-pip
catkin_make
โ If the command does not work, proceed with the following methodcd /home/<user_name>/catkin_ws/src git clone https://github.com/ros/catkin.git
And then
catkin clean
โ catkin build
Error - Turned off as soon as rviz turns on
forcing opengl version 0. segmentation fault
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252F62b64822-e87c-4093-a5e1-ce65d837f87c%252FUntitled.png%3Ftable%3Dblock%26id%3D2169d3ae-bb25-46db-9b2b-f746b222fce0%26cache%3Dv2&w=3840&q=75)
kimkh@SotatekKR:~/catkin_ws$ glxgears Segmentation fault kimkh@SotatekKR:~/catkin_ws$ glxinfo | grep 'OpenGL renderer' OpenGL renderer string: D3D12 (Intel(R) Iris(R) Xe Graphics)
Looking at the OpenGL render string sentence, it seemed necessary to install the Intel Graphics Update Tool.
- It worked normally after updating the graphic tool written at the top of the blog.
After build completed,
ROS Preferences:
- Run
setup.bash
script before runroscore
bashCopy code source ~/catkin_ws/devel/setup.bash
Install the following X-server program because the Rivz gaezo GUI is not visible in WSL
If you use WSL2 on Windows 10 Build 19044+ or Windows 11, you can use gui without a separate program like xming.
wsl --update
After proceeding, proceeding with the following proceduresXwindow install
sudo apt-get install x11-apps xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic
Run ROSCORE!
In one terminal run "
roscore
" Then, in a new terminal do "rosrun rviz rviz
โ![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252F80fe4da8-6d7e-4701-8eb1-304f5b9b10a2%252FUntitled.png%3Ftable%3Dblock%26id%3D8d74dbd9-24d0-4f4c-8dbe-d0cb0fb4454d%26cache%3Dv2&w=3840&q=75)
roslaunch dsr_launcher dsr_moveit_gazebo.launch
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252F53544a67-01ce-4354-8862-76c9c882dfb1%252FUntitled.png%3Ftable%3Dblock%26id%3D034ef6d6-6f1e-4d64-88ef-dcc5a3caddd7%26cache%3Dv2&w=3840&q=75)
๐จ๐ปโ๐ป Result
WSL1,2 - Window10
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252F53544a67-01ce-4354-8862-76c9c882dfb1%252FUntitled.png%3Ftable%3Dblock%26id%3D0b366008-71f8-4103-ac63-0a95c4392e79%26cache%3Dv2&w=3840&q=75)
GPU Issueโฆ
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252F9224a8b5-1a0f-4b38-bb81-703c4ca8d088%252FUntitled.png%3Ftable%3Dblock%26id%3Dd04e8336-7a83-4025-9b3a-b07f7b51536e%26cache%3Dv2&w=3840&q=75)
WSL2 - Window11
![notion image](https://inblog.ai/_next/image?url=https%3A%2F%2Fwww.notion.so%2Fimage%2Fhttps%253A%252F%252Fprod-files-secure.s3.us-west-2.amazonaws.com%252F09535c88-7789-4820-9158-4ae62342203e%252Fc5882bbf-f41b-4f47-a8fc-5fe97985315a%252FUntitled.png%3Ftable%3Dblock%26id%3D9be5f6f5-e573-4e7b-9d7a-c775c167d093%26cache%3Dv2&w=3840&q=75)
๐ Reference
- DR Open-source
- Installing ROS netoic in Ubuntu20.04 Environment with Window 10 โ WSL1(2)
Share article