ROS Packages and Libraries MCQs December 22, 2025August 9, 2024 by u930973931_answers 20 min Score: 0 Attempted: 0/20 Subscribe 1. What is a ROS package? (A) A tool for managing ROS nodes (B) A directory that contains ROS nodes, libraries, and configuration files (C) A file format for ROS messages (D) A type of ROS node 2. Which command is used to create a new ROS package? (A) rosnewpkg (B) roscreate_package (C) catkin_create_pkg (D) rosmake_pkg 3. What is the purpose of the package.xml file in a ROS package? (A) To list ROS nodes (B) To define package metadata and dependencies (C) To configure ROS services (D) To record ROS messages 4. Which file is used to specify CMake build instructions for a ROS package? (A) CMakeLists.txt (B) package.xml (C) rosbuild.xml (D) Makefile 5. How do you declare a dependency on another ROS package in package.xml? (A) Using the (B) Using the (C) Using the (D) Using the 6. What does the catkin_make command do? (A) Builds and compiles ROS packages (B) Creates a new ROS package (C) Lists all available ROS packages (D) Configures ROS package dependencies 7. Which command is used to list all installed ROS packages in the workspace? (A) rospkg list (B) rospack list (C) rospack info (D) roslist 8. In a ROS package, where would you typically place custom message definitions? (A) In the src directory (B) In the msg directory (C) In the include directory (D) In the launch directory 9. Which command is used to display information about a specific ROS package? (A) rosinfo package (B) rospackage info (C) rospackage show (D) rospack info 10. What does the rosbuild tool do in ROS? (A) Creates new ROS packages (B) Manages package dependencies (C) Provides a build system for ROS packages (D) Launches ROS nodes 11. What is the purpose of the src directory in a ROS package? (A) To list ROS dependencies (B) To store message definitions (C) To contain source code files for nodes and libraries (D) To configure build settings 12. Which file in a ROS package defines the package’s dependencies? (A) config.xml (B) CMakeLists.txt (C) package.xml (D) dependencies.xml 13. What does the roscd command do? (A) Compiles ROS packages (B) Changes the directory to a ROS package directory (C) Lists available ROS topics (D) Displays ROS parameters 14. How can you remove a ROS package from your workspace? (A) Use the rosrm command (B) Delete the package directory and rebuild the workspace (C) Use the catkin_delete_pkg command (D) Modify the package.xml file 15. Which command is used to initialize a new ROS workspace using Catkin? (A) catkin_create_workspace (B) rosworkspace init (C) catkin_init_workspace (D) rosinit 16. What is the purpose of the include directory in a ROS package? (A) To configure package parameters (B) To store message definitions (C) To contain header files for C++ code (D) To manage ROS services 17. How do you add custom libraries to a ROS package? (A) Define them in the package.xml file (B) Place them in the src directory (C) Include them in the CMakeLists.txt file (D) Add them to the msg directory 18. What is the purpose of the launch directory in a ROS package? (A) To manage package dependencies (B) To store message definitions (C) To include header files (D) To contain launch files for starting ROS nodes 19. Which command is used to display a summary of a ROS package’s dependencies? (A) rospackage dependencies (B) rospack dependencies (C) rosdep (D) rosinfo dependencies 20. How do you specify a custom path for ROS packages in a Catkin workspace? (A) Set the ROS_PACKAGE_PATH environment variable (B) Edit the CMakeLists.txt file (C) Modify the package.xml file (D) Use the rosconfig tool