Questions tagged [rospy]
The rospy tag has no usage guidance.
478 questions
0
votes
1
answer
6
views
Subscriber gets older timestamped messages
2 different nodes are listening to a msg with the same topic. 1 node (written in C++) gets the msg and print its content in an ...
0
votes
2
answers
8
views
rospy.sleep doesn't get awaken
Only on one of my machine, this elementary subscribe/publishing tutorial (WritingPublisherSubscriber(python)) doesn't work. In talker.py, thread never returns from ...
0
votes
1
answer
32
views
unknown error initiating tcp/ip socket
Can anyone tell me what this error implies?
...
0
votes
1
answer
3
views
Porting ROS to other Languages
Suppose I wanted to write an implementation of the ROS paradigm for other languages.I notice that there is a complete implementation of ROS for Java, as well as Python, and I was thinking specifically ...
0
votes
1
answer
1
view
What does "struct integer overflow" DeprecationWarning mean?
I am getting a lot of these errors:
/opt/ros/cturtle/ros/core/rospy/src/rospy/msg.py:151: DeprecationWarning: struct integer overflow masking is deprecated
msg.serialize(b)
Does anyone ...
0
votes
1
answer
14
views
service exception using tf listener in rospy
I get a service exception whenever I call lookupTransform for tf.TransformListner.
...
0
votes
1
answer
101
views
How to subscribe to odom properly in python
Hello, all,
I recently wrote a simple subscriber that subscribes to the topic /odom coming from the irobot_create_2_1 driver for an iCreate. However, when I simply print the odometry data and rotate ...
0
votes
1
answer
6
views
How do ros service responses work
hello everyone,
I have the following problem:
When I can call a service"server node" to calculate something(for simplicity float_A/float_B), how can i use the response to do something in my ...
0
votes
1
answer
9
views
is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?
is tf.transformations.quaternion_from_euler equal with tf::createQuaternionMsgFromYaw in functional?
Originally posted by gong on ROS Answers with karma: 164 on 2011-07-12
Post score: 1
0
votes
1
answer
1
view
response of a server in python
Hi, everybody,
I have a simple question. If I have more than 2 responses in the srv file. How Can I use them in python code. How to use the servicenameResponse() function?
Cheers,
Gauss
Originally ...
0
votes
1
answer
30
views
how is rosh's ok() different from rospy.is_shutdown()?
Specifically, what's the difference with how they handle a KeyboardInterrupt/SIGINT?
I would expect these two snippets to act the same, but they don't:
...
0
votes
1
answer
1
view
dynamically create,compile and import msg files
hello,
i'm trying to create and dynamically compile msg files to use them while the node is running.
Somehow it works only for the first msg file which i create,compile and import.
Every file which i ...
0
votes
1
answer
18
views
TypeError for built-in operation
In working with tf.Transformer, I've run into this error many times.
TypeError: bad argument type for built-in operation
The most frustrating part of getting this ...
0
votes
1
answer
8
views
How to get the publisher name from a received message in rospy?
Hey everybody,
I can't find anywhere how to get the publisher name from a received message using python. In C++ I just have to do the following:
...
0
votes
1
answer
14
views
rospy logging configuration file
The logging overview page for rospy (http://www.ros.org/wiki/rospy/Overview/Logging) mentions that as of Diamondback, logging is configured using a file in the fileConfig format.
Is there an example ...
0
votes
2
answers
15
views
Loading a file from a python ros node
Hello, I'm writing a python node and I need to load an XML file. I want to try to keep the XML file in my package so that way it travels with the ROS package. However, since I typically launch ...
0
votes
1
answer
2
views
Weird behavior when instantiating SimpleActionClient right after initializing node in rospy
Hi all,
I ran into a problem when I ran python scripts where an actionlib
action client is intantiated right after the node a the
wait_for_server() function does not seem to work always properly (it ...
0
votes
1
answer
40
views
rospy logging configuration
The rospy docs mention that from Diamondback on, rospy uses Python's logging library and configuration format. Two questions about this:
The link in the docs is broken. Is there an example on the ...
0
votes
4
answers
40
views
waitForTransform use_sim_time python
This is basically the same question as was asked here, but I am seeing the exact same behavior and haven't found a solution.
I am playing back a bag, using --clock, and setting use_sim_time correctly.
...
0
votes
1
answer
6
views
importing PIL into a rosnode
when I have the line
"from PIL import Image"
in a node, I get the following error when running my node via rosrun
"ImportError: No module named PIL"
of course, PIL is installed in
/...
0
votes
3
answers
86
views
Change rospy node log level while running
Is there any way to change a rospy node's log level while it is running? http://www.ros.org/wiki/rospy/Overview/Logging says that you must pass in a parameter to ...
0
votes
1
answer
10
views
Test for when a rospy publisher become available
I noticed that you must sleep for some amount of time before a rospy publisher actually starts to work. I was wondering if there is any way to test for this?
...
0
votes
1
answer
1
view
wiimote WallTime problem
Hello,
I'm not capable of running the wiimote_node.py by using a very simple launch file:
...
0
votes
1
answer
16
views
Does rospy not have walltime?
I was under the impression that anything in roscpp should also be available in rospy. WallTime is in roscpp but I can't find it in rospy.
Originally posted by Asomerville on ROS Answers with karma: ...
0
votes
3
answers
44
views
rospy threading model
Is it correct to assume that a new thread will be used for every instance of every subscription and service callback?
Originally posted by bhaskara on ROS Answers with karma: 1479 on 2011-03-23
Post ...
0
votes
1
answer
4
views
PCL compute normals for python
Hi,
Is it possible to use PCL's normal estimation class with rospy?
thanks!
Originally posted by magjossp on ROS Answers with karma: 1 on 2011-03-20
Post score: 0
0
votes
1
answer
16
views
How to recieve an array over Publisher and Subscriber? (Python)
Examples would be useful.
Originally posted by GeniusGeeko on ROS Answers with karma: 299 on 2011-03-17
Post score: 8
0
votes
1
answer
42
views
Any good examples of using dynamic_reconfigure for a python node?
I want to use dynamic_reconfigure with a python node. I know how to do it in C++, but could use a working python example to use as a model.
Originally posted by joq on ROS Answers with karma: 25443 ...