ROS2 (Foxy) commands stopped working
Hi,
After a clean Ubuntu 20.04 installation, I had installed both Foxy and Noetic. There was no error or anything unusual while installing.
I followed MoveIt2 tutorials to do some experiments using Rviz and MoveIt2. But when I run the demo tutorial with the command below:
ros2 launch moveit2_tutorials demo.launch.py rviz_tutorial:=true
even though it didn't produce any error to stdout, Rviz2 GUI didn't open. I thought there was something wrong with Rviz2, I tried to run Rviz2 only with:
rviz2
Again, nothing happened. I tried to interrupt it with CTRL+C nothing happened.
That's when I realized, none of ROS2 commands and packages work. I can't list topics/nodes. I can't run successfully built packages. I can't interrupt them with CTRL+C. I can only stop them with CTRL+Z. Then I can force kill (just "sudo kill pid" can't kill) the process.
The only CLI commands I can run are "help" and "daemon". And the "daemon status" outputs:
The daemon is not running
"daemon start" outputs:
Failed to confirm that the daemon started successfully
I can run Ros Noetic packages/commands without a problem. And I used to run Foxy commands/packages as well. I realized this 2 days ago but maybe it has been like this before than that. I reinstalled Foxy with:
sudo apt remove ~nros-foxy-* && sudo apt autoremove
sudo apt install ros-foxy-desktop
Nothing changed.
Just to better visualize, this is an example of what I have been through for a couple of days:
pantheon@pantheon:~$ source /opt/ros/foxy/setup.bash
pantheon@pantheon:~$ rviz2
WARNING: CPU random generator seem to be failing, disable hardware random number generation
WARNING: RDRND generated: 0xffffffff 0xffffffff 0xffffffff 0xffffffff
^C[INFO] [1652177988.645153370] [rclcpp]: signal_handler(signal_value=2)
^Z
[1]+ Stopped rviz2
pantheon@pantheon:~$ ps
PID TTY TIME CMD
851668 pts/5 00:00:00 bash
852225 pts/5 00:00:05 rviz2
852748 pts/5 00:00:00 ps
pantheon@pantheon:~$
Edit1: I can run ros2 multicast send/receive as well. Plus I added the output of ros2 run demo_nodes_cpp listener --ros-args --log-level DEBUG
below. The process lingers like this indefinitely.
^C[INFO] [1652868642.298481658] [rclcpp]: signal_handler(signal_value=2)