error in import
Dear ROS-Users I created a service in my_package but I am not able to import it. In particular, using "from my_package import srv" in a ros-python node raise me this error: ImportError: cannot import...
View ArticleError in Importing Custom Message Types in a Python File in Eclipse
I have created a msgs package containing a msg folder which contains the custom messages in .msg format. When I try to import the .msg files in eclipse from my module in python, eclipse gives an error...
View ArticleError on importing some meshes to gazebo
Well guys, i'm using a 3D modeled Hexapod robot that was make on Solid Workd. Well, I'm trying to import that robot to the gazebo simulator. I worked with other simulator, the Morse, then I needed to...
View ArticleFlip video file i
Hi, I am having a hard time making my python code execute with ```rosrun```. My project structure looks like this: ```~/workspace/src/my_package``` which contains two subdirectories with my code, lets...
View ArticleCan't find binary when building with Eclipse
Hi! I followed the instructions on how to work with Eclipse and I have successfully imported the project to eclipse and I have no errors. I also managed to build the project with no errors. But when I...
View ArticleImport a floor plan gazebo 2.2
Hi Ros users: Is there any way to import a floor plan in gazebo 2.2 on 2d view? I know that in gazebo 5.0 it is possible how you can see in this tutorial...
View ArticleImportError: No module named rospkg
Hey, I'm trying to compile a rospackage, but I throws the following error: > ImportError: No module named rospkg I checked if it is installed: > sudo apt-get install python-rospkg ->...
View ArticleProblem inserting STL or scene object in RViz
Hello everyone, I am currently working on a project with the robot Hiro and would like some advices with RViz. **I use ROS Hydro, on Ubuntu 12.04 (64-bit)** I would like to change the robot tools...
View ArticleImportError: No module named rospy
When I roslaunch my node, the error I receive is ImportError: No module named rospy But when I open up the python environment and run `import rospy`, it imports successfully and I can access...
View ArticleLinking external library in ROS Python
Hi, I'm trying to add an external python library to my python project in my catkin workspace. The folder structure is not the best but I have my python executable in the `/scripts` folder along with my...
View ArticlePython import: rosrun works well but roslaunch reports error
Hi, I'm writing some rospy nodes recently and some import errors ocur when I utilize roslaunch to start my node.a.py 1 import sys 2 sys.path.append("..") 3 from middle_abstraction.function_unit import...
View ArticleImport command not working
This is the first part of my code: #!/usr/bin/env python import os import sys import signal import rospy import time Even then I got the error saying that: line 1:#!/usr/bin/env: no such file or...
View ArticleCan't import rospy
Hello, I have a ROS aplication in Python and Qt, and when I run it from the terminal all is ok, but I try to run with double click (the script with the permissions and Nautilus configuration...
View ArticleImport error: no module named Num.msg
Hi, I want to use my own msg, and try this: from Num.msg import * and get the import error. Num.msg is in /msg/ and is found by "rosmsg show". When I don't import, codeline "a = Num()" gets error...
View Articlewrite my own urdf, define visual and collision
as for most realistic robots, the visual or collision part of them are too far complicated to manually write. Someone with experience said using sw_urdf_exporter has several disadvantages so that he...
View ArticleUnable to import python script from a second package
I am attempting to import a python script which is part of a second package. The code for my project is located at https://github.com/Aditya90/zeroborgRobot/tree/feature/AddZeroborgLibrary. In the file...
View ArticleExecutable programm using ros (double click)
Hello, I have a c++ programm that starts a launchfile with exec (same result if i start it with system). It does work fine when starting from the terminal. However, I would like to have it execute on...
View Articleimport error no module named srv
I am struggling to progress the error (below) which I have encountered when completing this part of the tutorial [link text](http://wiki.ros.org/ROS/Tutorials/ExaminingServiceClient) I'm not sure why...
View Articlecannot import libfreenect2
I have followed the steps for the installation of libfreenect2 as given in this link (https://github.com/OpenKinect/libfreenect2)(on Ubuntu 14.04.1) i have installed it at /home/user_name/ i have to...
View Articleimporting rospy and actionlib causes embedding python code in c++ to fail
Hi, I am using a large code base were our robot path planning is entirely coded in python. We need to call the planner in one c++ code file to find the path length. I have tested my code with other...
View ArticleRos python packages __init__ level imports
I noticed that in native ROS packages all available modules seem to be imported at package level always. For example let us consider the `rosbag` python package. This is the output I see when print...
View ArticleImport tensorflow in ROS kinetic
Hello everyone, I am having some troubles to use Tensorflow in ROS Kinetic. The error message is: (no error with catkin_make) process[Filter-1]: started with pid [21302] process[CallTensorflow-2]:...
View ArticleQR Module of Eigen library is not found, where do I need to alter the Cmake.txt
Hy everybody, I am currently writing a function for a ros node. During this calculation I am trying to use the pseudo inverse of the QR Module of Eigen. But unfortunately it is not able to find the...
View ArticleROS kinetic mesh error
Hi I'm trying to create a hand model in Rviz but when I'm trying to launch my hand model, terminal shows error but my robot model has been launched without mesh error: [joint_state_publisher-1] process...
View Articleimport cv2 in ros
Hi, I have installed opencv 3.4.2 from source with CUDA support in my tX2 and i also i have installed ros which include opencv 3.3.1dev I have managed to use the correct opencv version when i use ros...
View ArticleError on import ros packages
I`m trying to write a ros module in python, but I'm facing this issue below: import: not authorized `rospy' @ error/constitute.c/WriteImage/1028. from: can't read /var/mail/sensor_msgs.msg from: can't...
View Articleuse a function imported with a moudle contain multi classes in python
0 The question is all about importing a module called leap_interface.py to send.py and using a of the functions defined in leap_interface. I ask this question, because the leap_interface module is a...
View ArticleRos 2 import tf2 Python
Hello, I started having a look at Ros 2 (crystal) two weeks ago and really had a hard time creating a package that produces some executables. As I managed to do that I tried to migrate some old code to...
View ArticleError 127 when importing project into Eclipse
Hello, I'm having trouble importing my package into Eclipse. It worked before, but since a few days it causes trouble. When I open resp. try to import my project the following error message is...
View Articlerosgraph_msgs
Hello, I'm trying to do a simple suscriber on rosout but I can't get it to work (I'm a begineer). I'm working on a computer from work. When I type "rosgraph_msgs.msg import Clock", python says "can't...
View Article