ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

abstracto's profile - activity

2022-06-16 00:12:02 -0500 received badge  Famous Question (source)
2021-01-02 00:43:44 -0500 received badge  Notable Question (source)
2020-10-12 08:12:01 -0500 received badge  Famous Question (source)
2020-04-30 02:39:37 -0500 received badge  Popular Question (source)
2020-04-30 02:39:23 -0500 received badge  Notable Question (source)
2020-04-28 00:59:22 -0500 edited answer catkin_package() DEPENDS on 'roscpp' which must be listed as a run dependency in the package.xml

try adding this in package.xml <run_depend>roscpp</run_depend> or You can try editing these lines in

2020-04-28 00:53:57 -0500 answered a question catkin_package() DEPENDS on 'roscpp' which must be listed as a run dependency in the package.xml

try adding this in package.xml <run_depend>roscpp</run_depend>

2020-04-28 00:53:57 -0500 received badge  Rapid Responder (source)
2020-04-28 00:44:50 -0500 answered a question catkin_package() DEPENDS on 'roscpp' which must be listed as a run dependency in the package.xml

Try adding below lines to your package.xml <build_export_depend>roscpp</build_export_depend> <exec_

2020-04-28 00:44:50 -0500 received badge  Rapid Responder (source)
2020-04-21 05:38:59 -0500 marked best answer how to disable parameters loaded from yaml from being displayed in terminal ?

When you load parameters from YAML in a roslaunch file , they get displayed in terminal, since I am having lot of variables it is getting difficult to debug. Is there anyway to prevent them from being printed in terminal ?

2020-04-20 08:11:45 -0500 answered a question how to disable parameters loaded from yaml from being displayed in terminal ?

Repasting answer from comments, given by @gvdhoom. adding --no-summary to your roslaunch invocation quiets things down

2020-04-20 08:11:45 -0500 received badge  Rapid Responder (source)
2020-04-20 08:09:48 -0500 commented question how to disable parameters loaded from yaml from being displayed in terminal ?

Thank you so much, this helps a lot.

2020-04-18 09:37:03 -0500 asked a question how to disable parameters loaded from yaml from being displayed in terminal ?

how to disable parameters loaded from yaml from being displayed in terminal ? When you load parameters from YAML in a ro

2020-02-22 15:33:33 -0500 received badge  Popular Question (source)
2020-01-18 11:22:07 -0500 marked best answer subscriber callback in a python class is overwriting the class variables with the most recent data before the first callback processing finishes.

I am on ROS Melodic. When a subscriber is receiving data at a faster rate than it could process, the class variables are being updated before the callback process is finished. For example, when I run below subscriber. When the first callback is triggered tracker is set to 1 and after 5 seconds it was supposed to print 1, now before the completion of these 5 seconds, the subscriber receives another data, the call back will update tracker to 2. Now, this value 2 is printed twice instead of 1 and then 2. I am trying to say that the tracker is being set to most recent callback value before even the print process has been finished.

class listener:
    def printer(self):
        rospy.sleep(5)
        print (self.tracker)
        print("Look Above for value")

    def callback(self, data):
        rospy.loginfo("I heard %s", data)
        self.tracker = self.tracker + 1
        self.printer()

    def __init__(self):

        rospy.init_node('listener', anonymous=True)
        self.tracker = 0
        rospy.Subscriber('/path_query', PathQuery, self.callback,
                         queue_size=1)
        rospy.spin()

if __name__ == '__main__':
    listener()
2020-01-18 11:22:07 -0500 received badge  Scholar (source)
2020-01-18 07:55:33 -0500 asked a question subscriber callback in a python class is overwriting the class variables with the most recent data before the first callback processing finishes.

Issue with callback in class: When I tried to implement a subscriber callback in a python class, I callback is overwriti

2019-12-17 10:24:10 -0500 received badge  Supporter (source)
2018-08-12 02:36:53 -0500 received badge  Enthusiast