sudo apt install ros-humble-rmw-cyclonedds-cpp
~/.bashrcfile:export ROS_LOCALHOST_ONLY=1
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
Then source the file by source ~/.bashrcor close the terminal and open a new terminal again
lo, put the following script into the ~/.bashrcfile:if [ ! -e /tmp/multicast_is_set ]; then
sudo ip link set lo multicast on
touch /tmp/multicast_is_set
fi
Then source the file by source ~/.bashrcor close the terminal and open a new terminal again. And check if it’s working by run command: ifconfig -a. If you see the following information, you are good to go:

ros2 daemon stop
ros2 daemon start