ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2018-02-07 15:30:57 -0500 | received badge | ● Taxonomist |
2016-12-15 20:53:41 -0500 | received badge | ● Student (source) |
2015-04-07 12:48:43 -0500 | received badge | ● Notable Question (source) |
2015-04-07 12:48:43 -0500 | received badge | ● Famous Question (source) |
2014-07-15 21:42:52 -0500 | received badge | ● Famous Question (source) |
2014-03-17 01:47:06 -0500 | received badge | ● Popular Question (source) |
2013-12-30 11:29:39 -0500 | received badge | ● Famous Question (source) |
2013-11-17 03:57:41 -0500 | received badge | ● Notable Question (source) |
2013-11-10 18:51:28 -0500 | received badge | ● Popular Question (source) |
2013-11-10 03:46:08 -0500 | commented answer | one node subscribes two hokuyo laser python [solved] I tried that but this error appear: TypeError: callback() takes exactly 10 arguments (1 given) [ERROR] [WallTime: 1384098176.620008] bad callback: <function callback2="" at="" 0x2572ed8=""> Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 681, in _invoke_callback cb(msg) TypeError: callback2() takes exactly 10 arguments (1 given) |
2013-11-10 01:01:46 -0500 | commented question | one node subscribes two hokuyo laser python [solved] I think that it is wrong because i made it by intuition. I am gonna put the error and the all code in the topic. Thank you |
2013-11-09 16:24:33 -0500 | asked a question | one node subscribes two hokuyo laser python [solved] Hi, I am using two laser hokuyo, one on top of the other to make a 360 degrees scan. I am working in python and i am making a node that simply join the information that come from the different topics. However i don't know how to make to callbacks in the same node.I simply want that each call back calls from one topic, so that i can read both ranges and join them. Can you help me? Edit: The error is: [ERROR] [WallTime: 1384088332.419696] bad callback: <function callback2="" at="" 0x29cbed8=""> Traceback (most recent call last): File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/topics.py", line 681, in _invoke_callback cb(msg) File "/home/tiago/catkin_ws/src/test_python/listener.py", line 32, in callback2 cerebro(); File "/home/tiago/catkin_ws/src/test_python/listener.py", line 38, in cerebro copy(); File "/home/tiago/catkin_ws/src/test_python/listener.py", line 68, in copy pub.publish(LaserScan(laser)) File "/opt/ros/groovy/lib/python2.7/dist-packages/sensor_msgs/msg/_LaserScan.py", line 80, in __init__ super(LaserScan, self).__init__(args, *kwds) File "/opt/ros/groovy/lib/python2.7/dist-packages/genpy/message.py", line 271, in __init__ raise TypeError("Invalid number of arguments, args should be %s"%str(self.__slots__)+" args are"+str(args)) TypeError: Invalid number of arguments, args should be ['header', 'angle_min', 'angle_max', 'angle_increment', 'time_increment', 'scan_time', 'range_min', 'range_max', 'ranges', 'intensities'] args are(header: And here is my code: #!/usr/bin/env python import rospy from sensor_msgs.msg import LaserScan from std_msgs.msg import String from std_msgs.msg import Header import genpy Thank you EDIT: Ok guys i think that i have solved the problem: Instead of this: i made this: don't ask me why, i am new in ROS so some times i do things by intuition. Thank you for your time! |
2013-11-05 15:35:15 -0500 | received badge | ● Notable Question (source) |
2013-11-05 15:11:56 -0500 | asked a question | Caterpillar track odometry model Hi guys, I am now working in a robot which has Caterpillar track instead of normal wheels and i want to make odometry with him. I was hoping that you had some sugestions about how to make a aproximated model. Thank You |
2013-11-05 15:02:36 -0500 | commented question | syntax error near unexpected token [SOLVED] The problem is solved! I was trying to run de cpp file instead of the one made with the rosmake! It was a really nub problem! Thanks |
2013-11-03 12:25:37 -0500 | commented question | syntax error near unexpected token [SOLVED] Thanks, now it is better. Maybe is the includes but i don't know why... |
2013-11-02 19:43:10 -0500 | received badge | ● Popular Question (source) |
2013-11-02 09:02:20 -0500 | commented question | syntax error near unexpected token [SOLVED] Ok,sorry about the editing,i don't now why it appears like that! |
2013-11-02 09:01:10 -0500 | received badge | ● Editor (source) |
2013-11-02 07:55:34 -0500 | asked a question | syntax error near unexpected token [SOLVED] Hi guys, I am new in ros and i am having trouble with the odometry c++ publish turorial (wiki.ros.org/navigation/Tutorials/RobotSetup/Odom). I am using the code in this link. When i try to rosrun the program it gives me this: line 5: syntax error near unexpected token `(' line 5: ` int main(int argc, char** argv){' I don't understand why. BTW i am using groovy. my c code is: thanks |