srl-freiburg / pedsim_ros

Pedestrian simulator powered by the social force model
https://github.com/srl-freiburg/pedsim_ros
BSD 2-Clause "Simplified" License
447 stars 169 forks source link

How to use pedsim? #61

Open aghorbani96 opened 3 years ago

aghorbani96 commented 3 years ago

I'm researching pedestrian dynamics and I'm new with ROS & Rviz, when I execute the launch file(e.g simple_pedestrians.launch) I encounter the empty Rviz window with no object. I would be grateful if you help me with how to use pedsim. (preferably with a sample example)

Thanks

Rviz

aghorbani96 commented 3 years ago

Error in cmd when launching simple_pedestrians.launch:

PARAMETERS

NODES / pedsim_simulator (pedsim_simulator/pedsim_simulator) pedsim_visualizer (pedsim_visualizer/pedsim_visualizer_node) rviz (rviz/rviz) /pedbot/control/ driving_controller (pedsim_simulator/simulate_diff_drive_robot)

auto-starting new master process[master]: started with pid [4236] ROS_MASTER_URI=http://127.0.0.1:11311 setting /run_id to 4a67a58f-e2c6-11ea-8fe7-ac2b6e803a36 process[rosout-1]: started with pid [10032] started core service [/rosout] ERROR: cannot launch node of type [pedsim_simulator/pedsim_simulator]: Cannot locate node of type [pedsim_simulator] in package [pedsim_simulator]. Make sure file exists in package path and permission is set to executable (chmod +x) ERROR: cannot launch node of type [pedsim_simulator/simulate_diff_drive_robot]: Cannot locate node of type [simulate_diff_drive_robot] in package [pedsim_simulator]. Make sure file exists in package path and permission is set to executable (chmod +x) ERROR: cannot launch node of type [pedsim_visualizer/pedsim_visualizer_node]: Cannot locate node of type [pedsim_visualizer_node] in package [pedsim_visualizer]. Make sure file exists in package path and permission is set to executable (chmod +x) process[rviz-5]: started with pid [11764] [ERROR] [1597916556.850507800]: PluginlibFactory: The plugin for class 'spencer_tracking_rviz_plugin/TrackedPersons' failed to load. Error: Could not find library corresponding to plugin spencer_tracking_rviz_plugin/TrackedPersons. Make sure the plugin description XML file has the correct name of the library and that the library actually exists. [ERROR] [1597916556.864185400]: PluginlibFactory: The plugin for class 'spencer_tracking_rviz_plugin/TrackedGroups' failed to load. Error: Could not find library corresponding to plugin spencer_tracking_rviz_plugin/TrackedGroups. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.

makokal commented 3 years ago

What versions of ROS, ubuntu are you using?

aghorbani96 commented 3 years ago

I'm using melodic for windows.

mengxingshifen1218 commented 2 years ago

hello,I have same question, how to solve?

makokal commented 2 years ago

Can you share the output of compiling the packages successfully. It seems that you have not build all the packages