Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [python2.7]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

ImportError: No module named openai_ros_common

I am doing the tutorial from Openai_ros:http://wiki.ros.org/openai_ros/TurtleBot2%20with%20openai_ros And when I tried launching my file: ...
yz x's user avatar
  • 3
0 votes
1 answer
108 views

ROS node connection is not active

I'm using ROS Kinetic on Ubuntu 16.04 with a real robot. I'm loading a map on topic /map with the map_server node and I'm trying to subscribe the /map topic with a personal node called my_node, ...
Team Robotica's user avatar
0 votes
0 answers
28 views

ImportError: cannot import name 'Respawn' from 'respawnGoal'

I am trying to run Machine Learning demos for ros noetic on Ubuntu 20.04 and I am getting this error. When I run this command: ...
Mike's user avatar
  • 1
0 votes
2 answers
380 views

Error: Packages could not have their rosdep keys resolved

I am getting an error when I give this command rosdep install --from-paths ./ -i -y --rosdistro melodic ...
Vishnu Nair's user avatar
0 votes
1 answer
3 views

[python] how the vehilce keep moving, while the if condition doesnot receive any value?

In the following code, i want the robot keep moving up to the time that the if condition gets True. Now the problem is that, when one of the conditions in if, receives no value (ValueError: min() arg ...
user avatar
0 votes
1 answer
58 views

Get time stamp from ros msg

hello everyone. I have a problem. I experimented with robot work in gazebo virtual environment. I want to map the state of the manipulator to the obtained point cloud data (the point cloud used in the ...
user avatar
0 votes
1 answer
17 views

ROS service server and client node to publish on serial port

Hi I need to create ROS SERVICE server and client node that check lets say IMU sensor data and publish the IMU value on serial port. So I though the only way is to create two separates nodes for ...
user avatar
0 votes
2 answers
26 views

How to change topic name in function call?

Hello, I am trying to run the same code on different robots, and they have different tf prefixes. So instead of making n files, I want to just change the prefix in the function, here called ns ...
user avatar
0 votes
1 answer
47 views

CMake error with custom messages

I created 2 custom messages in my package to publish data through one of my nodes. The .msg files are: bearing_angles.msg float left_edge float right edge ...
user avatar
0 votes
1 answer
8 views

ZeroDivisionError: float division by zero

How to fix this issue. I followed this video here This full code: ...
user avatar
0 votes
1 answer
54 views

Callback rate is faster than the received message

Hello people. I have a node which subscribes to two topics with different frequencies and using two different callback functions I publish data to two different topics. My code is structured like this:...
user avatar
0 votes
1 answer
25 views

Custom Message with uint8[] Reads as string dtype

I'm trying to pass a custom message through a service . I have a C++ node using this service just fine, however in Python I can't seem to pull information from the custom message. When I try to take ...
user avatar
0 votes
1 answer
27 views

Rotate turtlebot 10 degrees about its axis

Hi all. How are you? How can I turn turtlebot2 10 degrees about its axis and then pause. Note: The robot will not move, it will just rotate 10 degrees once every say 20 seconds. I tried setting the ...
user avatar
0 votes
1 answer
5 views

Duration calculation and control in ROS - furthermore why does this script keep running even after pressing Ctrl-C?

Hi everyone, I have written some code to make the turtlebot turn around. The code is working. What I want to know is how fast the turtlebot is running and how I can control it. Forexample, how can I ...
user avatar
0 votes
1 answer
15 views

Publisher-Subscriber node not invoking callback function in python

Hello, so I'm trying to do a node where I publish a Twist message on cmd_vel to control a differential robot using the keyboard. I'm doing a PID control to correct some orientation problems on the ...
user avatar
0 votes
1 answer
11 views

What is the workflow to prevent mixing python2.7 and python3 for tf2?

I have chronically had the issue where I had to run python2 if I ever wanted to use the tf2 libraries. I use primarily kinetic+16.04 and melodic+18.04. I typically get the issue: ...
user avatar
0 votes
1 answer
24 views

Error when execute 'ros2 topic echo /hello_ros2 ros1_msgs/MyMsg'

The ros1_msgs/MyMsg is my custom message type, The package directory path is ~/ros1_install/src/ros1_msgs. So I open a terminal, then source the relevant package path to environment by this order: <...
user avatar
0 votes
1 answer
4 views

Accidentaly deteled python2.7 and roscore is dead

Hi! I have accidentally deleted python2.7 and now I can't run roscore. I tried to reinstall it but.. ...
user avatar
0 votes
1 answer
29 views

Subscriber python CameraInfo and Image

Hello i am new to ros and python. Need little help in how to subscribe to CameraInfo and Image of format sensor_msgs.msg and use its data for further image processing. Here are few lines of code that ...
user avatar
0 votes
1 answer
10 views

Altering PYTHONPATH in a ros node at runtime

Hi, I'm running ROS kinetic and my code requires Python 3 to run. I've been told that ROS does not support Python 3 (which is terrible tbh) and I was looking for a way around, thus came up with the ...
user avatar
0 votes
1 answer
9 views

"True" parallelization in rospy with subscribers

Hey everyone, Using Rospy (python 2.7) with Indigo. I ran into the issue that once I command a moveit group to "go" with wait=True it will be a blocking call that causes my subscription to ...
user avatar
0 votes
1 answer
3 views

RVIZ Application Not Launching

Hello Im trying to run an RVIZ application from the Udacity Robotics-Nanodegree but unfortunately when i try to run it it crashes with this message: ...
user avatar
0 votes
1 answer
4 views

Python version to use with ROS kinetic

Which python interpreter version is most advisable to use with ROS kinetic and gazebo 7 simulator? As I read to set up ros to work with python 3 requires a extra effort. Originally posted by bxl on ...
user avatar
0 votes
1 answer
2 views

Can you use python 3 with ROS Kinetic?

I hear that it isn't supported according to this question: http://answers.ros.org/question/237613/how-to-define-ros-kinetic-to-use-python3-instead-of-python27/. However, can anyone be more specific as ...
user avatar
0 votes
1 answer
10 views

catkin_make fails with "Invalid package manifest"

Hey everybody, I'm trying to create a catkin workspace, but keep getting the error below when running catkin_make. I run ROS Kinetic on Ubuntu 16.04 and I use a ...
user avatar
0 votes
3 answers
18 views

How to run ROS if your default python version is 3.x via Anaconda

Hey there, the default python version I use on my Ubuntu 16.04 machine is 3.6 (Anaconda) and I'm trying to setup my catkin workspace. When I run catkin_make, I get ...
user avatar
0 votes
1 answer
9 views

include srv files in python catkin project

I am currently having some issues with importing my service files into my project. i can't import into my service_def.py file.. Why is that not possible? I made it as a rosnode, my src folder of the ...
user avatar
0 votes
1 answer
2 views

Publish a message from global scope in python

I am currently Trying to make this rosnode work, but I aren't sure why i am not able to do the first publish in this code, being the pub.publish(String("start")) But able to do the ones in ...
user avatar
0 votes
1 answer
1 view

Is it possible to convert std_msgs/Int8 to a binary number?

I am currently trying to convert a std_msgs/Int8 messsage that I receive from a topic to a binary number in python. The way I am currently doing it is by doing this dirty hack. ...
user avatar
0 votes
1 answer
3 views

Waiting for "gazebo_msgs/GetLinkState" causes Python to freeze

ROS Indigo on Ubuntu 14.04 with Gazebo 7.3.0 and Python 2.7: I have an issue withs starting a Gazebo service proxy for getting link states programmatically from a Python file I run after running the ...
user avatar
0 votes
1 answer
3 views

My node is stopping - error in threading.py

Hello I have written an navigation algorithm, which takes input from an Imu and Hokuyo Urg laser range scanner and uses those to calculate a velocity and a angle for direction. However my node stop ...
user avatar
0 votes
2 answers
6 views

Does Tox get along with catkin's setup.py?

Hi all, I am trying to automate the testing of my package using Tox but not without problems. It seems that Tox doesn't like catkin's setup.py config file, at least ...
user avatar
0 votes
1 answer
1 view

fuerte's supported python is 2.6 that's not supported on Precise

I noticed (while I'm looking at this question) that official python version in fuerte is 2.6 (link to REP-003), which is no longer supported in Ubuntu Precise (...
IsaacS's user avatar
  • 4,502
0 votes
1 answer
1 view

Exception AttributeError from '/usr/lib/python2.7/threading.pyc' when RUSCORE start!

Hi friends! i don't know anything about PYYYTHo0o0o0oN :-s what am i should to0 do0 whit these exceptionS? (i have ROS FUERTE) tnQ ...
user avatar