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

Modified for kinetic(c++11) #237

Closed
wants to merge 1 commit into from
Closed

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Nov 11, 2019

indigo で動くかどうかは未確認.

indigoユーザ確認してください @start-jsk/jsk-students

@pazeshun
Copy link
Collaborator

indigoでビルドすると、以下のようにエラーが出て、変更した部分が悪さをしているように思います。
start-jsk/jsk_apc@4020d63, jsk-ros-pkg/jsk_visualization#710, jsk-ros-pkg/jsk_visualization#739 あたりを参考に直してみたいと思います。

/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp: In member function 'virtual void gazebo::IOBPlugin::Load(gazebo::physics::ModelPtr, sdf::ElementPtr)':
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:281:102: error: no matching function for call to 'dynamic_pointer_cast(gazebo::sensors::SensorPtr)'
                  (this->world->GetName() + "::" + msi.link->GetScopedName() + "::" + msi.sensor_name));
                                                                                                      ^
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:281:102: note: candidates are:
In file included from /usr/include/c++/4.8/bits/shared_ptr.h:52:0,
                 from /usr/include/c++/4.8/memory:82,
                 from /home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:4:
/usr/include/c++/4.8/bits/shared_ptr_base.h:1177:5: note: template<class _Tp, class _Tp1, __gnu_cxx::_Lock_policy _Lp> std::__shared_ptr<_Tp1, _Lp> std::dynamic_pointer_cast(const std::__shared_ptr<_Tp2, _Lp>&)
     dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept
     ^
/usr/include/c++/4.8/bits/shared_ptr_base.h:1177:5: note:   template argument deduction/substitution failed:
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:281:102: note:   'gazebo::sensors::SensorPtr {aka boost::shared_ptr<gazebo::sensors::Sensor>}' is not derived from 'const std::__shared_ptr<_Tp2, _Lp>'
                  (this->world->GetName() + "::" + msi.link->GetScopedName() + "::" + msi.sensor_name));
                                                                                                      ^
In file included from /usr/include/c++/4.8/memory:82:0,
                 from /home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:4:
/usr/include/c++/4.8/bits/shared_ptr.h:447:5: note: template<class _Tp, class _Tp1> std::shared_ptr<_Tp1> std::dynamic_pointer_cast(const std::shared_ptr<_Tp2>&)
     dynamic_pointer_cast(const shared_ptr<_Tp1>& __r) noexcept
     ^
/usr/include/c++/4.8/bits/shared_ptr.h:447:5: note:   template argument deduction/substitution failed:
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:281:102: note:   'gazebo::sensors::SensorPtr {aka boost::shared_ptr<gazebo::sensors::Sensor>}' is not derived from 'const std::shared_ptr<_Tp2>'
                  (this->world->GetName() + "::" + msi.link->GetScopedName() + "::" + msi.sensor_name));
                                                                                                      ^
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp: In member function 'void gazebo::IOBPlugin::GetRobotStates(const gazebo::common::Time&)':
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:901:34: error: 'class gazebo::sensors::ImuSensor' has no member named 'AngularVelocity'
       math::Vector3 wLocal = sp->AngularVelocity();
                                  ^
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:902:33: error: 'class gazebo::sensors::ImuSensor' has no member named 'LinearAcceleration'
       math::Vector3 accel = sp->LinearAcceleration();
                                 ^
/home/travis/ws/src/rtmros_gazebo/hrpsys_gazebo_general/src/IOBPlugin.cpp:903:37: error: 'class gazebo::sensors::ImuSensor' has no member named 'Orientation'
       math::Quaternion imuRot = sp->Orientation();
                                     ^
make[2]: *** [CMakeFiles/IOBPlugin.dir/src/IOBPlugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/IOBPlugin.dir/all] Error 2

@pazeshun
Copy link
Collaborator

Closed via #242

@pazeshun pazeshun closed this Dec 11, 2019
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

Successfully merging this pull request may close these issues.

3 participants