ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2020-05-31 23:31:38 -0500 | received badge | ● Great Answer (source) |
2018-10-15 09:23:49 -0500 | received badge | ● Nice Answer (source) |
2017-10-17 22:59:26 -0500 | received badge | ● Good Answer (source) |
2016-03-30 10:14:10 -0500 | received badge | ● Nice Answer (source) |
2015-06-12 15:51:39 -0500 | received badge | ● Good Answer (source) |
2015-05-31 10:39:06 -0500 | received badge | ● Good Answer (source) |
2015-05-19 21:06:33 -0500 | received badge | ● Great Answer (source) |
2015-05-19 21:06:33 -0500 | received badge | ● Guru (source) |
2014-04-02 16:40:10 -0500 | received badge | ● Great Answer (source) |
2014-04-02 16:40:10 -0500 | received badge | ● Guru (source) |
2014-01-28 17:29:59 -0500 | marked best answer | Best practice for online re-configuration between nodes Dear all, I'm looking for the best way to achieve the following (in cpp on Fuerte). At the moment, I have one node which should be dynamically reconfigurable (i.e.: start, stop, set camera frame rate). In the long run, there will be many nodes that should be configurable by other nodes, often by one node switching the system into different states. The current state of each node should be accessible by all other nodes. What's the best design to achieve this? My ideas so far:
In case of three and four, I could probably use a regular getParamCached() call instead of the service (?). Do any of these seem reasonable? Do you have comments on possible benefits/downsides of using on or another, e.g. in terms of performance, manageability of code (including n services of different other nodes), best practices? Or is there some other method that I didn't discover yet? I'd appreciate your comments or recommendations! Regards, Philip P.S.: If there's any changes between Fuerte and Groovy that may benefit my use-case, I'd probably consider upgrading. EDIT (in reply to comments): I am not looking for setting and reading a configuration state for the whole system, for which a nice solution was already given here. I'm rather looking for a way to be able to access and configure each node's parameters on their own during runtime. Thanks for all your input! EDIT (out of curiosity): In this tutorial, turtlesim is re-configured at runtime via something like method 3 as described above (this is probably where I got that idea in the first place). Does anybody know a specific reason why it is done this way? |
2013-11-15 03:13:49 -0500 | commented answer | A subscriber error To anyone reading this answer from @pelment: Callbacks can be class methods (which in many cases is preferable). You just have to put attention to setting it up in a way that the subscriber doesn't go out of scope (and use the syntax for class-callbacks from the publisher/subscriber tutorial). |
2013-11-14 10:36:04 -0500 | received badge | ● Guru (source) |
2013-11-12 03:19:40 -0500 | received badge | ● Nice Answer (source) |
2013-09-17 01:47:55 -0500 | answered a question | problem with custom point cloud type Just out of my head, it's been a couple of months: I stumbled upon something similar and it wasn't because of the custom type, but of how I used the publisher. Check if you
Hope this helps! EDIT: Just looked it up. Here's the relevant parts of my code copied together: However, I directly fill the sensor_msgs::PointCloud2 datatype of ROS instead of using the PCL one. |
2013-08-14 04:39:46 -0500 | commented answer | Is anyone else thinking about wrapping the leap for ROS? +1 to be interested in a ros node, especially one working in Fuerte ;-) |
2013-07-17 11:55:51 -0500 | edited question | marker array not visible in rviz but is getting published.. I am trying display marker array in rviz. The marker is published succesfully but is not visible in rviz. The code is below: I tried both Marker and MarkerArray types but its not visible in rviz. Am i doing something wrong when assigning values to marker array ?? This was my first try with marker array further actually i want to display segmented pcl data as marker array. Any idea what is wrong please :) |
2013-07-16 21:56:21 -0500 | received badge | ● Great Answer (source) |
2013-07-16 13:29:24 -0500 | received badge | ● Good Answer (source) |
2013-07-16 06:50:24 -0500 | received badge | ● Nice Answer (source) |
2013-07-16 02:23:39 -0500 | answered a question | What is the benefit & target of using ROS?
See http://answers.ros.org/question/61939/why-use-ros/ and http://answers.ros.org/question/33811/why-choose-ros/ for some more information about what ROS can do / can be used for. As first steps, I'd suggest to head over to ros.org and have a look at the tutorials and projects. |
2013-07-14 06:04:20 -0500 | commented answer | pcl detecting planes in the map If you use the code you posted on dropbox, this is the correct behaviour. What happens is the following: You enter the callback, pcl visualizer spins until the viewer is closed. Afterwards, the publisher is invoked. Replace 'while (!viewer->wasStopped ()) {...}' by a simple 'viewer->spinOnce (100)'. |
2013-07-12 22:52:03 -0500 | commented answer | pcl detecting planes in the map Strange! I fear that I have no immediate idea... can you verify that the final_cloud which you send to RViz is created correctly? E.g. display the number of points by something like printf(final_cloud.fields.count) |
2013-07-12 12:08:52 -0500 | commented answer | pcl detecting planes in the map I reformatted your code for easier readability. Can you give information about what doesn't work (see my question)? |
2013-07-12 12:06:24 -0500 | edited question | pcl detecting planes in the map I am new to pcl, i would like to detect/segment all the planar surfaces ex: tables. I tried the tutorial :http://pointclouds.org/documentation/tutorials/extract_indices.php#extract-indices and used the extracted points to visualize in rviz but i don not see the planar surfaces clearly. I guess i am displaying wrong points .. Could someone explain that tutorial or tell how can i detect planar surfaces in pcl2 format and further use those pcl2 ?? Update: I have attached the code: (more) |
2013-07-11 10:03:41 -0500 | answered a question | pcl detecting planes in the map I guess this question would be more suited to the pcl user mailinglist as it is not really related to ROS. Did you have a look at the plane segmentation tutorial of PCL? Based on the information so far, it could be lots of reasons (wrong computation, error in publishing the result, ...). Can you be a little more specific about what doesn't work? What exactly do you see in RViz (no points / wrong points / "almost right points")? Can you verify that PCL segments the correct points, e.g. by displaying the result in PCL visualizer? Adding the code for publishing to your question might also help. |
2013-07-11 10:00:55 -0500 | answered a question | Openni+Kinect+Other Machines To my knowledge, this is not possible with just OpenNI (which was not developed for this usecase). You might look into the possibility to install something on both machines which allows you to forward the USB-data from the BeagleBone to a virtual USB-port on the laptop - I don't know if there are solutions for this. Afaik some router manufacturers allow for this in order to access printers attached to the router from any connected PC as if it were connected locally. Even if it is possible, you'd probably have to use a GBit-network connection as a Kinect uses about 60% of the available USB-bandwidth (which should be around 480 MBit/s, so 250+ used by the Kinect). |
2013-07-10 16:13:05 -0500 | received badge | ● Nice Answer (source) |
2013-07-08 06:44:28 -0500 | received badge | ● Good Answer (source) |
2013-06-29 04:25:59 -0500 | commented question | Installing PCL 1.7 (trunk) on ROS Groovy Did you follow the description at http://www.ros.org/wiki/pcl17 ? If so, can you give any error messages or similar? |
2013-06-25 11:26:52 -0500 | answered a question | How to troubleshoot network delay Assuming wlan standard 802.11b, the maximal bandwith is 11 MBit/s = 1,375 MByte/s. If one kinect frame amounts to 700kBytes, 2 fps would be the upper max. Using wlan standard 802.11g, 22 MBit/s = 2,75 MByte/s = 4fps would be realistic. So I would say that your 3 fps seem to be normal, yes. depending on your scenario, you could try to separate data acquisition and processing: send only the raw data (rgb, depth map) over the network and assemble the full XYZRGB point cloud at the receivers end. |
2013-06-24 14:17:06 -0500 | commented answer | publishing camera point clouds in rviz Glad to hear :-) As usual, please mark the answer as "accepted" (round check mark on the left) so it can be closed. Thanks! |
2013-06-24 05:29:44 -0500 | received badge | ● Nice Answer (source) |
2013-06-24 04:51:50 -0500 | received badge | ● Nice Answer (source) |
2013-06-24 04:22:34 -0500 | commented answer | publisher not publishing on topic Ah, thanks for the hint about getNumSubscribers! I wasn't aware of that :-) |
2013-06-24 02:09:48 -0500 | answered a question | publisher not publishing on topic My first guess: you try to publish while the publisher is not fully set up. Can you try waiting for a second (e.g. using |
2013-06-23 22:40:43 -0500 | answered a question | Is spinOnce needed? For single-threaded nodes: If you have an infinite loop of your own that does some processing, use If all your calculations are performed in callbacks and you don't need an infinite loop for your custom processing, just use |
2013-06-23 21:54:11 -0500 | answered a question | publishing camera point clouds in rviz Have you set the
See pointcloud2 message definition and header message definition for further details on the datatypes. |
2013-06-20 05:41:55 -0500 | received badge | ● Citizen Patrol (source) |
2013-06-18 03:27:50 -0500 | answered a question | Roslaunch can't find my node I fiddled around with this issue as well: tried different ways to set up parameters when using ssh (.ssh/environment-file, ...), tried to load my configuration at different places, but to no avail. My current working solution now looks like this:
source /opt/ros/fuerte/setup.bash source ~/ros_workspace/ros_conf.sh
Voila! Looks to be working until now :-) |
2013-06-11 22:18:13 -0500 | answered a question | streaming pointcloud to remote workstation In our setup, we've split the
This way, only the raw 2d data ( |