ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2018-04-17 06:02:59 -0500 | received badge | ● Taxonomist |
2016-08-04 04:05:09 -0500 | received badge | ● Good Question (source) |
2015-08-10 09:27:48 -0500 | received badge | ● Nice Question (source) |
2014-06-27 07:23:37 -0500 | received badge | ● Famous Question (source) |
2014-04-07 05:04:47 -0500 | received badge | ● Famous Question (source) |
2014-03-24 03:57:47 -0500 | received badge | ● Notable Question (source) |
2014-02-25 21:23:12 -0500 | received badge | ● Enthusiast |
2014-02-17 03:30:54 -0500 | received badge | ● Popular Question (source) |
2014-02-17 03:26:58 -0500 | commented question | roscpp and valgrind: memory leaks Sorry, I guess I had some left-over statements that I didn't snip out properly while copying here. But I removed the `close(sd)` and `return status` commands, made a new package & ran it. I get the same leaks. Can't/Shouldn't really change to ubuntu12.10 right now. Guess it's valgrind 3.7 |
2014-02-17 01:24:56 -0500 | commented question | roscpp and valgrind: memory leaks Well I'm on the latest one for Ubuntu 12.04 - running valgrind-3.7.0 |
2014-02-17 00:09:51 -0500 | received badge | ● Editor (source) |
2014-02-16 22:58:55 -0500 | asked a question | roscpp and valgrind: memory leaks I've been building and testing a program that reads the serial port and the publishes some data off to a topic. Now in the course of checking memory leaks, I realized that just declaring a Publisher or Timer gives rise to memory leaks of the type 'possibly lost'. Here's the basic code I have. It does nothing: } If I comment out the lines declaring the (more) |
2014-02-03 04:27:59 -0500 | received badge | ● Famous Question (source) |
2014-01-24 02:39:45 -0500 | commented answer | boost::bind errors in subscriber callback functions Wow, that was simple to fix. I wonder which method would be better to use - this answer or using classes as suggested by @Wolf. |
2014-01-24 01:47:04 -0500 | received badge | ● Notable Question (source) |
2014-01-24 01:34:20 -0500 | commented answer | boost::bind errors in subscriber callback functions I modified the example code you provided to follow the tutorial http://wiki.ros.org/roscpp_tutorials/Tutorials/UsingClassMethodsAsCallbacks more closely. This way, only the function write_enocean and the topic_name were in the class, while the subscriber was defined outside, rather than class method |
2014-01-24 01:01:29 -0500 | commented question | boost::bind errors in subscriber callback functions I'm not sure I understand what you mean. Do I use it something like boost::function(bind, ...) or? I've not really used boost before, hence the confusion. |
2014-01-24 01:00:01 -0500 | received badge | ● Popular Question (source) |
2014-01-24 00:30:13 -0500 | commented answer | boost::bind errors in subscriber callback functions I'll try this out and report back in case of errors. Thanks! |
2014-01-24 00:28:44 -0500 | received badge | ● Supporter (source) |
2014-01-23 21:56:59 -0500 | asked a question | boost::bind errors in subscriber callback functions Hey, Kind of newbie in using boost, and this is driving me crazy. I wanted to pass on the topicname to the callback function of subscriber, so I followed the various questions already asked and wrote the following: My callback function: Subscriber: If I do this, I get the following error: followed by the various candidates, and then: On the other hand, if write the subscriber as such: I get the error: What am I doing wrong with boost? My CMakeLists.text already includes the |
2014-01-22 03:59:05 -0500 | received badge | ● Nice Answer (source) |
2014-01-21 21:37:10 -0500 | received badge | ● Scholar (source) |
2014-01-21 11:42:37 -0500 | received badge | ● Teacher (source) |
2014-01-21 11:42:37 -0500 | received badge | ● Self-Learner (source) |
2014-01-21 11:37:07 -0500 | received badge | ● Notable Question (source) |
2014-01-20 23:18:27 -0500 | answered a question | Python Multiprocessing to publish to multiple topics I managed to solve this problem (Note to self: Read the python docs). Turns out that a new process thread creates a copy of all the data from the parent, and I had not taken care of this properly. The way I solved it was thus: I called the The important detail was declaring the variable The actual publisher then was just called in a normal loop: Hope this helps the others. |
2014-01-20 15:06:23 -0500 | received badge | ● Nice Question (source) |
2014-01-20 09:31:25 -0500 | received badge | ● Student (source) |
2014-01-20 07:20:36 -0500 | received badge | ● Popular Question (source) |
2014-01-20 01:52:46 -0500 | commented question | Python Multiprocessing to publish to multiple topics I realize that I may be using the multiprocessing module wrong to share variables (the publisher for instance). It would be helpful if someone could suggest a way to fix that. |
2014-01-19 23:21:42 -0500 | asked a question | Python Multiprocessing to publish to multiple topics I currently have a setup where I have about 10 shell scripts that listen to 10 different KNX addresses (using the shell command grouplisten) and publish their state to a ROS topic. These scripts can run in the background, so it's quite convenient to 'listen' to the state of these devices. I tried to replace these 10 scripts with a single python program that basically does this:
(The device_talker basically just publishes new data to What happens is that the logs suggest data is being published, but I don't see anything on when I subscribe to those topics or if I do Any suggestions on what I should do? (In case you are wondering why - I want to replace 10 scripts with 1 for easier code management. Also, Since I can store all address and device props in a yaml file, it will be trivial to add, or edit the configuration file). |