SMRazaRizvi96 / MixedReality-based-drone-controller

This repository contains a Unity project for a Mixed-Reality based drone controller. The Mixed-Reality device used in this project is a Hololens2.
7 stars 1 forks source link

Cannot roslaunch #4

Closed BKC92 closed 7 months ago

BKC92 commented 1 year ago

Hi Raza An error occurred while following your project, but I couldn't figure it out even after searching, so I asked this question. My problem is that when I run roslaunch, the following error appears and ends with keyboardinterrupt. I would be very grateful if you could tell me how to fix the error.

roslaunch drone_control joy_node.launch ... logging to /home/user/.ros/log/e8d9fcf6-ece5-11ed-b933-55d41ac45852/roslaunch-user-VirtualBox-2232.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://user-VirtualBox:38317/

SUMMARY

PARAMETERS

NODES / aruco_single (aruco_ros/single) joy_node (joy/joy_node) tello_NEW_Aruco_Pose (drone_control/tello_NEW_Aruco_Pose.py) tello_joypad_control (drone_control/tello_joypad_control.py) /tello/ image_raw (image_transport/republish) new_tello_driver_node (drone_control/new_tello_driver_node.py)

ROS_MASTER_URI=http://localhost:11311

process[aruco_single-1]: started with pid [2246] process[tello/new_tello_driver_node-2]: started with pid [2247] process[tello/image_raw-3]: started with pid [2248] process[tello_NEW_Aruco_Pose-4]: started with pid [2249] process[joy_node-5]: started with pid [2250] RLException: Roslaunch got a 'No such file or directory' error while attempting to run:

xterm -e /home/user/catkin_ws/src/drone_control/src/tello_joypad_control.py name:=tello_joypad_control log:=/home/user/.ros/log/e8d9fcf6-ece5-11ed-b933-55d41ac45852/tello_joypad_control-6.log

Please make sure that all the executables in this command exist and have executable permission. This is often caused by a bad launch-prefix. The traceback for the exception was written to the log file [ERROR] [1683471112.055065609]: Couldn't open joystick /dev/input/js6. Will retry every second. [tello_joypad_control-6] killing on exit [joy_node-5] killing on exit [tello_NEW_Aruco_Pose-4] killing on exit [tello/image_raw-3] killing on exit [aruco_single-1] killing on exit [tello/new_tello_driver_node-2] killing on exit Traceback (most recent call last): File "/home/user/catkin_ws/src/drone_control/src/tello_NEW_Aruco_Pose.py", line 13, in import actionlib File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/init.py", line 28, in from actionlib.action_client import File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/action_client.py", line 56, in import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 47, in from std_msgs.msg import Header File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/init.py", line 1, in from ._Bool import File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in import genpy File "/opt/ros/noetic/lib/python3/dist-packages/genpy/init.py", line 34, in from . message import Message, SerializationError, DeserializationError, MessageException, struct_I File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 64, in import numpy as np File "/usr/lib/python3/dist-packages/numpy/init.py", line 142, in from . import core File "/usr/lib/python3/dist-packages/numpy/core/init.py", line 17, in from . import multiarray File "/usr/lib/python3/dist-packages/numpy/core/multiarray.py", line 14, in from . import overrides File "/usr/lib/python3/dist-packages/numpy/core/overrides.py", line 5, in import textwrap File "", line 991, in _find_and_load Traceback (most recent call last): File "/home/user/catkin_ws/src/drone_control/src/new_tello_driver_node.py", line 2, in File "", line 971, in _find_and_load_unlocked File "", line 914, in _find_spec import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 47, in File "", line 1407, in find_spec File "", line 1379, in _get_spec from std_msgs.msg import Header File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/init.py", line 1, in File "", line 1534, in find_spec from ._Bool import * File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in import genpy File "", line 121, in _path_join File "/opt/ros/noetic/lib/python3/dist-packages/genpy/init.py", line 34, in KeyboardInterrupt from . message import Message, SerializationError, DeserializationError, MessageException, struct_I File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 64, in import numpy as np File "/usr/lib/python3/dist-packages/numpy/init.py", line 142, in from . import core File "/usr/lib/python3/dist-packages/numpy/core/init.py", line 17, in from . import multiarray File "/usr/lib/python3/dist-packages/numpy/core/multiarray.py", line 470, in def cancast(from, to, casting=None): File "/usr/lib/python3/dist-packages/numpy/core/overrides.py", line 201, in decorator return array_function_dispatch( File "/usr/lib/python3/dist-packages/numpy/core/overrides.py", line 184, in decorator public_api = scope[implementation.name] KeyboardInterrupt


roslaunch drone_control MR-Drone-Controller.launch ... logging to /home/user/.ros/log/e8d9fcf6-ece5-11ed-b933-55d41ac45852/roslaunch-user-VirtualBox-2080.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://user-VirtualBox:40261/

SUMMARY

PARAMETERS

NODES / aruco_single (aruco_ros/single) tello_Final_Controller (drone_control/tello_Final_Controller.py) tello_NEW_Aruco_Pose (drone_control/tello_NEW_Aruco_Pose.py) unity_endpoint (ros_tcp_endpoint/default_server_endpoint.py) /tello/ image_raw (image_transport/republish) new_tello_driver_node (drone_control/new_tello_driver_node.py)

ROS_MASTER_URI=http://localhost:11311

process[unity_endpoint-1]: started with pid [2094] process[aruco_single-2]: started with pid [2095] process[tello/new_tello_driver_node-3]: started with pid [2096] process[tello/image_raw-4]: started with pid [2097] process[tello_NEW_Aruco_Pose-5]: started with pid [2098] RLException: Roslaunch got a 'No such file or directory' error while attempting to run:

xterm -e /home/user/catkin_ws/src/drone_control/src/tello_Final_Controller.py name:=tello_Final_Controller log:=/home/user/.ros/log/e8d9fcf6-ece5-11ed-b933-55d41ac45852/tello_Final_Controller-6.log

Please make sure that all the executables in this command exist and have executable permission. This is often caused by a bad launch-prefix. The traceback for the exception was written to the log file [tello_Final_Controller-6] killing on exit [tello_NEW_Aruco_Pose-5] killing on exit Traceback (most recent call last): File "/home/user/catkin_ws/src/drone_control/src/tello_NEW_Aruco_Pose.py", line 13, in import actionlib File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/init.py", line 28, in from actionlib.action_client import File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/action_client.py", line 56, in import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 47, in from std_msgs.msg import Header File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/init.py", line 1, in from ._Bool import File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in import genpy File "/opt/ros/noetic/lib/python3/dist-packages/genpy/init.py", line 34, in from . message import Message, SerializationError, DeserializationError, MessageException, struct_I File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 43, in import struct File "", line 991, in _find_and_load File "", line 971, in _find_and_load_unlocked File "", line 914, in _find_spec File "", line 802, in find_spec KeyboardInterrupt [tello/image_raw-4] killing on exit [tello/new_tello_driver_node-3] killing on exit [aruco_single-2] killing on exit Traceback (most recent call last): File "/home/user/catkin_ws/src/drone_control/src/new_tello_driver_node.py", line 2, in [unity_endpoint-1] killing on exit import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 47, in from std_msgs.msg import Header File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/init.py", line 1, in from ._Bool import File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in import genpy File "/opt/ros/noetic/lib/python3/dist-packages/genpy/init.py", line 34, in from . message import Message, SerializationError, DeserializationError, MessageException, struct_I File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 64, in import numpy as np File "/usr/lib/python3/dist-packages/numpy/init.py", line 142, in Traceback (most recent call last): File "/home/user/catkin_ws/src/ROS-TCP-Endpoint/src/ros_tcp_endpoint/default_server_endpoint.py", line 3, in from . import core File "/usr/lib/python3/dist-packages/numpy/core/init.py", line 71, in import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 47, in from . import numeric File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 844, in exec_module File "", line 939, in get_code File "", line 1038, in get_data KeyboardInterrupt from std_msgs.msg import Header File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/init.py", line 1, in from ._Bool import File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in import genpy File "/opt/ros/noetic/lib/python3/dist-packages/genpy/init.py", line 34, in from . message import Message, SerializationError, DeserializationError, MessageException, struct_I File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 64, in import numpy as np File "/usr/lib/python3/dist-packages/numpy/init.py", line 142, in from . import core File "/usr/lib/python3/dist-packages/numpy/core/init.py", line 84, in from . import getlimits File "/usr/lib/python3/dist-packages/numpy/core/getlimits.py", line 16, in from . import umath File "", line 392, in parent KeyboardInterrupt

SMRazaRizvi96 commented 1 year ago

Seems to be an error of the ROS executor not able to find the binaries for all the node .py nodes in the current workspace overlay.

Try:

  1. Building the ROS workspace again
  2. Set the permissions for all the .py node by running: chmod +x <filename>.py
  3. Source the workspace

Then try to launch the launch file again.

SMRazaRizvi96 commented 7 months ago

Closing due to no activity.