Execise 3-11 failed to create particle cloud


basically I have the coude as in the solution
when doing a roslaunch ./init_particles_caller.launch it failed with

xception in thread Thread-4 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  File "/usr/lib/python2.7/threading.py", line 754, in run
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 154, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'timeout'
[service_client-1] process has finished cleanly
log file: /home/user/.ros/log/74e1d3e2-8acc-11ea-a670-0af5caab061a/service_client-1*.log
all processes on machine have died, roslaunch will exit

and of couse there is nothing in RVIZ

Is PoseArray the right plugin for particle cloud ?
what can be the issue here ?

Hello @vkuehn,

The proper syntax for the roslaunch command is the following:

roslaunch initialize_particles init_particles_caller.launch

Also, keep in mind that in order to properly run this Exercise, you need to have the amcl node running first. Otherwise, the /global_localization Service won’t be available.

And yes, PoseArray is the right plugin for visualizing the particles cloud.


@albertoezquerro thanks for that

actually I had a typo in my dependencies (ropsy not rospy) However it works now
Thanks confirming the plugin