ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2022-01-12 12:01:30 -0500 | received badge | ● Teacher (source) |
2022-01-12 12:01:30 -0500 | received badge | ● Self-Learner (source) |
2020-09-19 14:53:46 -0500 | received badge | ● Notable Question (source) |
2020-09-19 14:53:46 -0500 | received badge | ● Famous Question (source) |
2020-09-19 14:53:46 -0500 | received badge | ● Popular Question (source) |
2020-07-10 12:15:44 -0500 | edited answer | Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package For anyone else running into this problem. My solution was PATH based. The module search paths were not identical. It |
2020-07-10 12:15:44 -0500 | received badge | ● Editor (source) |
2020-07-10 12:14:21 -0500 | marked best answer | Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package I am trying to compile a two variable simple message. When I include the message from the python command line it works: However when I run it from inside the ros package I get an error: I have correctly modified my
The pertinent part at the top of the python script is as follows: The contents of the msg file is: Showing that the script and the command line are executing the same version of python and they have the same package path. So my question: Why does the include work from the command line, but not from the rosrun or direct execution of the script using the shebang?? The paths are the same, the module is the same, the compile completes. (I'm on melodic) |
2020-07-10 12:14:21 -0500 | received badge | ● Scholar (source) |
2020-07-10 12:14:10 -0500 | answered a question | Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package For anyone else running into this problem. My solution was PATH based. It seems that the script is adding its own dire |
2020-07-10 12:14:10 -0500 | received badge | ● Rapid Responder (source) |
2020-07-09 20:48:46 -0500 | edited question | Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package I am trying to compile a |
2020-07-09 20:46:56 -0500 | asked a question | Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package Module Import Problem. (ModuleNotFoundError: No module named 'foo.msg'; 'foo' is not a package I am trying to compile a |
2019-03-01 12:40:32 -0500 | marked best answer | OpenCV difference between roslaunch and rosrun If I run a python script through a launch file, OpenCV cannot open a camera, but running it manually openCV works fine. Here’s the bare bones Code Snippet where it works/fails. Here’s the line from the launch file: Here’s the output of the screen dump from that launch: Notice it sets up a camera Object, but it fails to open. However if I kill the specific node and then re-run it manually from a rosrun command: like this: It passes the isOpened() check and starts dumping the data I’m looking for from a processed image. Does anyone have any thoughts as to why |
2018-04-05 02:44:08 -0500 | received badge | ● Famous Question (source) |
2018-01-31 15:40:42 -0500 | answered a question | OpenCV difference between roslaunch and rosrun I ended up installing usb_cam as suggested,(I'm going to use it eventually) but in the process discovered the solution f |
2018-01-27 11:57:44 -0500 | received badge | ● Notable Question (source) |
2018-01-25 23:39:21 -0500 | received badge | ● Student (source) |
2018-01-25 23:37:33 -0500 | received badge | ● Popular Question (source) |
2018-01-25 15:22:22 -0500 | asked a question | OpenCV difference between roslaunch and rosrun OpenCV difference between roslaunch and rosrun OS: Ubuntu 16.04.2 LTS Xenial ROS: Kinetic. OPenCV: 3.2.0-dev Python 2.7. |
2018-01-25 15:22:00 -0500 | asked a question | OpenCV roslaunch vs rosrun problem. OpenCV roslaunch vs rosrun problem. OS: Ubuntu 16.04.2 LTS Xenial ROS: Kinetic. OPenCV: 3.2.0-dev Python 2.7.12 ROS_ROOT |