Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working correctly #1

Open
m4xst3r opened this issue Sep 25, 2018 · 4 comments
Open

Not working correctly #1

m4xst3r opened this issue Sep 25, 2018 · 4 comments

Comments

@m4xst3r
Copy link

m4xst3r commented Sep 25, 2018

Hey,

I wanted to use this Simulation for a project at my university, where we try to simulate actors withe human behavior. I followed exactly your steps in the readme file but if i launch the default.launch my Actors spawn all in the same place and only walk two meters and then being reseted. As I tried to understand the code i recognize the actor_plugin is missing. It would be nice if you could do an reupload with a working simulation.

BR,
Max

@onlytailei
Copy link
Owner

onlytailei commented Sep 26, 2018

Hey,

I checked the code and remove some useless part for this example (default.launch).
Testing on ubuntu16.04+ros_kinetic+gazebo8 worked perfectly.
Please make sure passing_wall_4.py generate the new world file successfully.
Clone the newest commit and try it again. You will see four actor models moving interactively in a small distance. One of them is not really stepping because it is used for data collection.

@m4xst3r
Copy link
Author

m4xst3r commented Sep 28, 2018

First, Thanks for the help. I got it working, the libactorplugin_ros.so was missing I just changed it to the directory from gazebo and it worked. Until this morning it all worked fine but as i started today I got some error messages, that GetVel.h and SetPose.h are missing, after some search I found the .srv files and changed them to .h files but its still not working and now I getting this error messages:

In file included from /home/ros-ase/catkin_workspace/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:29:0:
/home/ros-ase/catkin_workspace/src/gym_ped_sim/actor_plugin/./include/ActorPlugin.hh:137:28: error: ‘actor_services’ has not been declared
bool SetPoseCallback(actor_services::SetPose::Request&,

And there are a lot of other errors in context with this, I think it hast something to do with the two header files. Could you please double check? Or is it a mistake from me and I am doing something wrong?

BR,
Max

@onlytailei
Copy link
Owner

onlytailei commented Sep 28, 2018

Hi Max,

If you are familiar with ROS, *.srv files will be generated to *.h files through catkin make. So you should not rename them by yourselves. The generated files will locate at /xxx/catkin_ws/devel/include/actor_services.

And you should configure your terminal through
source /xxx/catkin_ws/devel/setup.sh

I will build a docker image later so that you can exactly repeat everything I show.

@Taospirit
Copy link

Hi m4xst3r!
I get the same problem as you described at the beginning, there are only two people in gazebo walking slowly about two meters and then being reseted. I cannot fix it well even cloned the newest repo. Anyone can help me? Looking forward to the reply !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants