ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

warning: no return statement in function returning non-void [-Wreturn-type]

asked 2021-09-18 04:32:22 -0500

harish556 gravatar image

I am using this repo

when building the projects I am getting this error

Ros - noetic

    [ 83%] Building CXX object RoboND-Kinematics-Project/kuka_arm/CMakeFiles/trajectory_sampler.dir/src/trajectory_sampler.cpp.o
/home/guru/my_bots/Udacity_robot/src/RoboND-Kinematics-Project/kuka_arm/src/trajectory_sampler.cpp: In member function ‘bool TrajectorySampler::SetupCollisionObject(const string&, const string&, const Pose&, moveit_msgs::CollisionObject&)’:

make[1]: *** [CMakeFiles/Makefile2:2670: RoboND-Kinematics-Project/kuka_arm/CMakeFiles/trajectory_sampler.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [RoboND-Kinematics-Project/gazebo_grasp_plugin/CMakeFiles/gazebo_grasp_fix.dir/build.make:76: RoboND-Kinematics-Project/gazebo_grasp_plugin/CMakeFiles/gazebo_grasp_fix.dir/src/GazeboGraspGripper.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [RoboND-Kinematics-Project/gazebo_grasp_plugin/CMakeFiles/gazebo_grasp_fix.dir/build.make:63: RoboND-Kinematics-Project/gazebo_grasp_plugin/CMakeFiles/gazebo_grasp_fix.dir/src/GazeboGraspFix.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:706: RoboND-Kinematics-Project/gazebo_grasp_plugin/CMakeFiles/gazebo_grasp_fix.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j8 -l8" failed
edit retag flag offensive close merge delete

Comments

Please ask the Udacity maintainers/developers about this.

This is not a general ROS question, but a problem in one very specific package maintained/developed by a commercial entity.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-18 04:47:12 -0500 )edit

@gvdhoom I did raise an issue in the repo but as seeing there is no one to take care of it. and i also wanna know can i work without building this? will it work without any problem?

harish556 gravatar image harish556  ( 2021-09-18 04:52:25 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-09-18 16:18:51 -0500

Mike Scheutzow gravatar image

I've never used this repo, but it looks to me like you should just add a return true; to the end of method TrajectorySampler::SetupCollisionObject().

edit flag offensive delete link more

Comments

after doing that i am getting this error

/usr/include/eigen3/Eigen/src/Geometry/Transform.h: In instantiation of ‘Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 2; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 1; int _Options = 0]’:
/home/guru/my_bots/Udacity_robot/src/RoboND-Kinematics-Project/kuka_arm/src/trajectory_sampler.cpp:127:84:   required from here
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:939:34: error: static assertion failed: YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION
  939 | #define EIGEN_IMPLIES(a,b) (!(a) || (b))
harish556 gravatar image harish556  ( 2021-09-19 00:35:54 -0500 )edit

Sorry, I'm not going to port this code for you one error at a time in Question/Answer style. Either this is simply poor-quality code, or you're trying to run it on a ros release / ubuntu version it was not designed for.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-19 07:00:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-09-18 04:32:22 -0500

Seen: 317 times

Last updated: Sep 18 '21