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

Gspark's profile - activity

2020-08-13 05:54:51 -0500 received badge  Famous Question (source)
2019-09-19 15:56:53 -0500 received badge  Notable Question (source)
2019-04-25 00:58:33 -0500 received badge  Enthusiast
2019-04-24 05:45:59 -0500 marked best answer hokuyo subscriber callback delay??

Hi! I am trying to subscribe to a laser scan of the hokuyo_node. (UTM-30LX)
I have checked that the rostopic(/scan) satisfied 40Hz.
$rostopic hz /scan

However, msg(/scan) callback is not satisfied 40Hz. (0.025sec)
Can I subscribe a rostopic(/scan) with 40Hz?

[ INFO] [1556028820.890011693]: 231]Laser 1.112000 0.117000 0.486000
[ INFO] [1556028820.890147465]: 232]Laser 1.113000 0.119000 0.485000
[ INFO] [1556028820.933906513]: 233]Laser 1.118000 0.120000 0.488000
[ INFO] [1556028820.934033465]: 234]Laser 1.114000 0.128000 0.486000
[ INFO] [1556028820.977954391]: 235]Laser 1.112000 0.109000 0.488000
[ INFO] [1556028820.978087813]: 236]Laser 1.112000 0.117000 0.493000
[ INFO] [1556028821.021961768]: 237]Laser 1.113000 0.110000 0.492000
[ INFO] [1556028821.027527888]: 238]Laser 1.116000 0.116000 0.487000
[ INFO] [1556028821.070109309]: 239]Laser 1.113000 0.128000 0.486000

I using a source code below.

#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
void laserCallback(const sensor_msgs::LaserScan::ConstPtr & scan)
{
    ROS_INFO("%d]Laser %f %f %f", scan->header.seq, scan->ranges[0], scan->ranges[360], scan->ranges[719]);
}
int main(int argc, char **argv)
{
    ros::init(argc, argv, "laser_scan");
    ros::NodeHandle nh;

    ros::Subscriber scan_sub = nh.subscribe("/scan", 1000, laserCallback);
    ros::spin();
    return 0;
}
2019-04-24 05:45:59 -0500 received badge  Scholar (source)
2019-04-24 05:45:48 -0500 received badge  Popular Question (source)
2019-04-23 10:22:35 -0500 commented question hokuyo subscriber callback delay??

@gvdhoorn Correct! I prints that the topic is publishing at 40 Hz but callback didn't appear to be receiving messages at

2019-04-23 10:18:27 -0500 commented question hokuyo subscriber callback delay??

@gvdhoorn Correct! I prints that the topic is publishing at 40 Hz but callback didn't appear to be receiving messages at

2019-04-23 10:18:00 -0500 commented question hokuyo subscriber callback delay??

@gvdhoorn Correct! I prints that the topic is publishing at 40 Hz but callback didn't appear to be receiving messages at

2019-04-23 09:15:19 -0500 edited question hokuyo subscriber callback delay??

hokuyo subscriber callback delay?? Hi! I am trying to subscribe to a laser scan of the hokuyo_node. (UTM-30LX) I have c

2019-04-23 08:03:52 -0500 edited question hokuyo subscriber callback delay??

hokuyo subscriber callback delay?? Hi! I am trying to subscribe to a laser scan of the hokuyo_node. (UTM-30LX) I have c

2019-04-23 08:03:52 -0500 received badge  Editor (source)
2019-04-23 08:02:44 -0500 edited question hokuyo subscriber callback delay??

hokuyo subscriber callback delay?? Hi! I am trying to subscribe to a laser scan of the hokuyo_node. (UTM-30LX) I have c

2019-04-23 08:01:31 -0500 asked a question hokuyo subscriber callback delay??

hokuyo subscriber callback delay?? Hi! I am trying to subscribe to a laser scan of the hokuyo_node. (UTM-30LX) I have c

2019-04-23 07:35:56 -0500 received badge  Supporter (source)
2017-06-09 17:02:24 -0500 received badge  Famous Question (source)
2017-03-19 13:31:39 -0500 received badge  Good Question (source)
2017-01-25 09:32:20 -0500 received badge  Popular Question (source)
2017-01-25 09:32:20 -0500 received badge  Notable Question (source)
2016-11-26 12:16:32 -0500 received badge  Nice Question (source)
2016-11-17 15:43:14 -0500 received badge  Student (source)
2016-11-15 08:25:35 -0500 asked a question pyqtgraph can't choosing at rqt_plot's backend type

I installed a python-pyqtgraph_0.9.10-1_all.deb

I also installed it by git clone https://github.com/pyqtgraph/pyqtgraph

however.. In rqt_plot, I can't choosing pyqtgraph.

Please advise to me.

http://imgur.com/lewA09E