qboticslabs / mastering_ros

This repository contains exercise files of the book "Mastering ROS for Robotics Programming"
https://www.packtpub.com/hardware-and-creative/mastering-ros-robotics-programming
468 stars 282 forks source link

Simple start #41

Open Freel-Freel opened 5 years ago

Freel-Freel commented 5 years ago

Hello, Thank You for Your product and Big Work. I try to use it and i have the following question: When I started the subscriber and then the publisher, the subscriber got only 6 packages instead of 10 . Can You help me to solve this case?

subscriber:

rosrun mastering_ros_demo_pkg demo_topic_subscriber 

[ INFO] [1562774891.789805397]: Recieved  [3]
[ INFO] [1562774891.889308020]: Recieved  [4]
[ INFO] [1562774891.989637723]: Recieved  [5]
[ INFO] [1562774892.089623938]: Recieved  [6]
[ INFO] [1562774892.189616142]: Recieved  [7]
[ INFO] [1562774892.289592149]: Recieved  [8]

publisher:

rosrun mastering_ros_demo_pkg demo_topic_publisher

[ INFO] [1562774891.488517798]: 0
[ INFO] [1562774891.588267295]: 1
[ INFO] [1562774891.688207416]: 2
[ INFO] [1562774891.788217121]: 3
[ INFO] [1562774891.888220210]: 4
[ INFO] [1562774891.988260331]: 5
[ INFO] [1562774892.088259463]: 6
[ INFO] [1562774892.188257449]: 7
[ INFO] [1562774892.288261684]: 8
[ INFO] [1562774892.388366544]: 9

roscore:

$ roscore
... logging to /home/pi/.ros/log/cdd1ea56-a32c-11e9-bf3f-b827eb408aa0/roslaunch-raspberrypi-2641.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://raspberrypi:41275/
ros_comm version 1.12.14

SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES

auto-starting new master
process[master]: started with pid [2652]
ROS_MASTER_URI=http://raspberrypi:11311/

setting /run_id to cdd1ea56-a32c-11e9-bf3f-b827eb408aa0
process[rosout-1]: started with pid [2665]
started core service [/rosout]

system:

uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux