onlytailei / gym_ped_sim

A ros gazebo plugin for pedestrians (Raw depth social compliant navigation through GAIL) ICRA 2018
BSD 2-Clause "Simplified" License
116 stars 46 forks source link

err building actor plugin #5

Open xiaoyuanzh opened 5 years ago

xiaoyuanzh commented 5 years ago

Hi lei thx for your wonderful job for this interface. I meet a problem of building actor_plugin, when i use catkin build, it says Errors << actor_plugin:make /home/yu/zxy/catkin_ws/logs/actor_plugin/build.make.002.log
In file included from /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:29:0: /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/./include/ActorPlugin.hh:132:16: error: ‘TrajectoryInfoPtr’ in namespace ‘gazebo::physics’ does not name a type physics::TrajectoryInfoPtr trajectoryInfo; ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc: In member function ‘virtual void gazebo::ActorPlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)’: /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:52:39: error: ‘class gazebo::physics::Actor’ has no member named ‘WorldPose’ this->start_location = this->actor->WorldPose().Pos(); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:85:33: error: ‘class gazebo::physics::Actor’ has no member named ‘SkeletonAnimations’ auto skelAnims = this->actor->SkeletonAnimations(); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:93:11: error: ‘class gazebo::ActorPlugin’ has no member named ‘trajectoryInfo’ this->trajectoryInfo.reset(new physics::TrajectoryInfo()); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:94:11: error: ‘class gazebo::ActorPlugin’ has no member named ‘trajectoryInfo’ this->trajectoryInfo->type = WALKING_ANIMATION; ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:95:11: error: ‘class gazebo::ActorPlugin’ has no member named ‘trajectoryInfo’ this->trajectoryInfo->duration = 1.0; ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:96:18: error: ‘class gazebo::physics::Actor’ has no member named ‘SetCustomTrajectory’ this->actor->SetCustomTrajectory(this->trajectoryInfo); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:96:44: error: ‘class gazebo::ActorPlugin’ has no member named ‘trajectoryInfo’ this->actor->SetCustomTrajectory(this->trajectoryInfo); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc: In member function ‘ignition::math::Vector3d gazebo::ActorPlugin::SocialForce(ignition::math::Pose3d&, ignition::math::Vector3d) const’: /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:148:44: error: ‘class gazebo::physics::World’ has no member named ‘ModelCount’ for(unsigned int i = 0; i < this->world->ModelCount(); i++) { ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:149:51: error: ‘class gazebo::physics::World’ has no member named ‘ModelByIndex’ physics::ModelPtr currentAgent = this->world->ModelByIndex(i); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:162:58: error: ‘class gazebo::physics::Model’ has no member named ‘WorldPose’ ignition::math::Vector3d currentPose = currentAgent->WorldPose().Pos(); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc: In member function ‘void gazebo::ActorPlugin::OnUpdate(const gazebo::common::UpdateInfo&)’: /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:232:46: error: ‘class gazebo::physics::Actor’ has no member named ‘WorldPose’ ignition::math::Pose3d pose = this->actor->WorldPose(); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:281:20: error: ‘class gazebo::physics::Actor’ has no member named ‘WorldPose’ this->actor->WorldPose().Pos()).Length(); ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:285:16: error: ‘class gazebo::physics::Actor’ has no member named ‘SetScriptTime’ this->actor->SetScriptTime(this->actor->ScriptTime() + ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:285:43: error: ‘class gazebo::physics::Actor’ has no member named ‘ScriptTime’ this->actor->SetScriptTime(this->actor->ScriptTime() + ^ /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc: In member function ‘bool gazebo::ActorPlugin::SetPoseCallback(actor_services::SetPose::Request&, actor_services::SetPose::Response&)’: /home/yu/zxy/catkin_ws/src/gym_ped_sim/actor_plugin/src/ActorPlugin_ros.cc:341:46: error: ‘class gazebo::physics::Actor’ has no member named ‘WorldPose’ ignition::math::Pose3d pose = this->actor->WorldPose(); ^ make[2]: [CMakeFiles/actorplugin_ros.dir/src/ActorPlugin_ros.cc.o] Error 1 make[1]: [CMakeFiles/actorplugin_ros.dir/all] Error 2 make: *** [all] Error 2 cd /home/yu/zxy/catkin_ws/build/actor_plugin; catkin build --get-env actor_plugin | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ............................................................................................. Failed << actor_plugin:make [ Exited with code 2 ]
Failed <<< actor_plugin [ 3.5 seconds ]
[build] Summary: 1 of 2 packages succeeded.
[build] Ignored: 2 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 3.6 seconds total.
yu@yu:~/zxy/catkin_ws$ thx!!

xiaoyuanzh commented 5 years ago

I see, silly problem sry

pxlong commented 5 years ago

@xiaoyuanzh i also have this error. How do you fix it? Thx