You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!
The text was updated successfully, but these errors were encountered:
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!!
The text was updated successfully, but these errors were encountered: