1.apt download is slow
Solution: Change Aliyuan
Steps: "Show Applications" in the lower left corner - "Software and Updates" - Download from, select other sites - select the Ali source as shown below
2. pip download is slow
Solution: Change Aliyuan
step:
1. Create a .pip folder under home and create a pip.conf blank file
sudo mkdir ~/.pip
cd ~/.pip
>pip.conf
2. Write the following content into pip.conf, save and exit
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
3. The rosdep dependency installation prompts "given path 'src' does not exist"
The following situations may be encountered:
It is because the cd is in the wrong folder, you need to execute bash in the folder where ros_proxy or other versions of the code are located
4. "colcon build --symlink-install" fails to compile
As shown in the figure below, the compilation process will encounter the problem of lack of dependencies in various demos (the name is not fixed, but the demos encountered by bloggers that cannot be compiled are all related to OpenCV).
.
Refer to the official document linux_ubuntu to deploy ros2
The problem of ignoring the demo is adopted (if not ignored, the dependent library of the demo needs to be installed), you can
① Create a new "AMENT_IGNORE" file under the folder where the demo is located
② Ignore in the command line, enter "colcon build --symlink-install --packages-ignore intra_process_demo "to ignore (even if there are other demos that fail later, the demo will not be compiled next time)
5. The virtual machine and the host run their own ros2 publishing-subscribe demo (one runs talker, one runs listener), and the listener cannot receive the message
Here is the reason for the adapter, the blogger here refers to Baidu experience:
First select the virtual machine network adapter as the custom virtual network VMnet0 (or other optional numbers)
Then configure VMnet0 in the "Virtual Network Editor" under the VMware "Edit" tab (administrator)
Then select the bridge to "automatic" (it is best to configure it to...Ethernet Connection..., that is, the network card connected to the network cable)
In addition, if there is still a problem of being unable to ping, what the blogger encounters is: when configuring the virtual machine, the "ROS_DOMAIN_ID" is configured to 1 (while the host defaults to 0), resulting in that the two are not in the same domain ID , so naturally they cannot communicate. The following is a screenshot of the demo operation after the correct configuration: