반응형
# Problem
When I source in the terminal the following is output on the terminal:
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
Then when I run rviz2 the following error is output :
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
[rospack] Error: package 'rviz_common' not found
[librospack]: error while executing command
[INFO] [1688734375.741719691] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1688734375.742244516] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[rospack] Error: package 'rviz_common' not found
[librospack]: error while executing command
[rospack] Error: package 'rviz_common' not found
[librospack]: error while executing command
[INFO] [1688734375.841294184] [rviz2]: Stereo is NOT SUPPORTED
rviz2: malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)
# Solution
Problem was 'ROS_DISTRO was set to 'foxy' before.' The problem was resolved as soon as the following warning statement was changed off.
Solution 1:
Check your ~/.bashrc configure file. Unused versions must be annotated.
source /opt/ros/foxy/setup.bash
# source /opt/ros/noetic/setup.bash
Solution 2:
When you build a ROS2 file. Use following Command.
colcon build --symlink-install
# Reference
- [TheConstruct] Rviz_common files not found when launching rviz2: https://get-help.robotigniteacademy.com/t/rviz-common-files-not-found-when-launching-rviz2/25292
- [TheConstruct] ROS_DISTRO make sure environment doesn’t mix paths: https://get-help.robotigniteacademy.com/t/ros-distro-make-sure-environment-doesnt-mix-paths/13150
반응형