Ask Your Question

Shivam's profile - activity

2022-05-05 20:52:06 -0500 received badge  Famous Question (source)
2022-04-29 23:33:42 -0500 received badge  Famous Question (source)
2022-03-31 05:06:14 -0500 received badge  Notable Question (source)
2022-03-31 05:06:14 -0500 received badge  Popular Question (source)
2022-03-22 21:53:33 -0500 received badge  Notable Question (source)
2022-03-22 21:53:33 -0500 received badge  Popular Question (source)
2022-02-14 15:07:23 -0500 received badge  Notable Question (source)
2021-12-11 07:05:31 -0500 received badge  Popular Question (source)
2021-12-10 16:51:59 -0500 received badge  Self-Learner (source)
2021-12-10 16:51:59 -0500 received badge  Teacher (source)
2021-12-10 16:41:27 -0500 marked best answer How to resolve "error: no matching function for call to ‘Eigen::Matrix<float, 4, 1>::_init2<Eigen::Matrix<float, 4, 1, 0, 4, 1>, int>(const Eigen::Matrix<float, 4, 1>&, const int&)’"?

When I run catkin_make I get the following error:

In file included from /usr/include/eigen3/Eigen/Core:458,
                 from /usr/include/pcl-1.10/pcl/pcl_macros.h:75,
                 from /usr/include/pcl-1.10/pcl/console/parse.h:43,
                 from /home/shivam/catkin_ws/src/pcl_tutorial/src/random_sample_consensus.cpp:4:
/usr/include/eigen3/Eigen/src/Core/Matrix.h: In instantiation of ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T0&, const T1&) [with T0 = Eigen::Matrix<float, 4, 1>; T1 = int; _Scalar = float; int _Rows = 4; int _Cols = 1; int _Options = 0; int _MaxRows = 4; int _MaxCols = 1]’:
/home/shivam/catkin_ws/src/pcl_tutorial/src/random_sample_consensus.cpp:372:66:   required from here
/usr/include/eigen3/Eigen/src/Core/Matrix.h:302:35: error: no matching function for call to ‘Eigen::Matrix<float, 4, 1>::_init2<Eigen::Matrix<float, 4, 1, 0, 4, 1>, int>(const Eigen::Matrix<float, 4, 1>&, const int&)’
  302 |       Base::template _init2<T0,T1>(x, y);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/eigen3/Eigen/Core:457,
                 from /usr/include/pcl-1.10/pcl/pcl_macros.h:75,
                 from /usr/include/pcl-1.10/pcl/console/parse.h:43,
                 from /home/shivam/catkin_ws/src/pcl_tutorial/src/random_sample_consensus.cpp:4:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:738:30: note: candidate: ‘void Eigen::PlainObjectBase<Derived>::_init2(Eigen::Index, Eigen::Index, typename Eigen::internal::enable_if<(typename Eigen::internal::dense_xpr_base<Derived>::type::SizeAtCompileTime != 2), T0>::type*) [with T0 = Eigen::Matrix<float, 4, 1>; T1 = int; Derived = Eigen::Matrix<float, 4, 1>; Eigen::Index = long int; typename Eigen::internal::enable_if<(typename Eigen::internal::dense_xpr_base<Derived>::type::SizeAtCompileTime != 2), T0>::type = Eigen::Matrix<float, 4, 1>]’
  738 |     EIGEN_STRONG_INLINE void _init2(Index rows, Index cols, typename internal::enable_if<Base::SizeAtCompileTime!=2,T0>::type* = 0)
      |                              ^~~~~~
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:738:43: note:   no known conversion for argument 1 from ‘const Eigen::Matrix<float, 4, 1>’ to ‘Eigen::Index’ {aka ‘long int’}
  738 |     EIGEN_STRONG_INLINE void _init2(Index rows, Index cols, typename internal::enable_if<Base::SizeAtCompileTime!=2,T0>::type* = 0)
      |                                     ~~~~~~^~~~
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:748:30: note: candidate: ‘template<class T0, class T1> void Eigen::PlainObjectBase<Derived>::_init2(const T0&, const T1&, typename Eigen::internal::enable_if<(typename Eigen::internal::dense_xpr_base<Derived>::type::SizeAtCompileTime == 2), T0>::type*) [with T0 = T0; T1 = T1; Derived = Eigen::Matrix<float, 4, 1>]’
  748 |     EIGEN_STRONG_INLINE void _init2(const T0& val0, const T1& val1, typename internal::enable_if<Base::SizeAtCompileTime==2,T0>::type* = 0)
      |                              ^~~~~~
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h:748:30: note:   template argument deduction/substitution failed:
/usr/include/eigen3/Eigen/src/Core/PlainObjectBase.h: In substitution of ‘template<class T0, class T1> void Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1> >::_init2<T0, T1>(const T0&, const T1&, typename Eigen::internal::enable_if<false, T0>::type*) [with T0 = Eigen::Matrix<float, 4, 1>; T1 = int]’:
/usr/include/eigen3/Eigen/src/Core/Matrix.h:302:35:   required from ‘Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>::Matrix(const T0&, const T1&) [with T0 = Eigen::Matrix<float, 4, 1>; T1 = int; _Scalar = float; int _Rows = 4; int _Cols = 1; int _Options = 0; int _MaxRows = 4; int _MaxCols = 1]’
/home/shivam/catkin_ws/src/pcl_tutorial/src/random_sample_consensus.cpp:372 ...
(more)
2021-12-10 16:41:27 -0500 received badge  Scholar (source)
2021-12-10 16:41:22 -0500 answered a question How to resolve "error: no matching function for call to ‘Eigen::Matrix<float, 4, 1>::_init2<Eigen::Matrix<float, 4, 1, 0, 4, 1>, int>(const Eigen::Matrix<float, 4, 1>&, const int&)’"?

I resolved the error. The problem was in the cpp file. I was passing the wrong data type to an Eigen function. I don't w

2021-12-10 16:41:22 -0500 received badge  Rapid Responder (source)
2021-12-10 16:40:44 -0500 commented question How to resolve "error: no matching function for call to ‘Eigen::Matrix<float, 4, 1>::_init2<Eigen::Matrix<float, 4, 1, 0, 4, 1>, int>(const Eigen::Matrix<float, 4, 1>&, const int&)’"?

@osilva I resolved the error. The problem was in the cpp file. I was passing the wrong data type to an Eigen function. I

2021-12-09 16:24:48 -0500 asked a question How to resolve "error: no matching function for call to ‘Eigen::Matrix<float, 4, 1>::_init2<Eigen::Matrix<float, 4, 1, 0, 4, 1>, int>(const Eigen::Matrix<float, 4, 1>&, const int&)’"?

How to resolve "error: no matching function for call to ‘Eigen::Matrix<float, 4,="" 1="">::_init2<eigen::matrix

2021-12-08 12:52:36 -0500 received badge  Student (source)
2021-12-07 21:21:36 -0500 commented question How to resolve fatal error: transform_listener.h: No such file or directory?

@osilva then I will also have to change tf to tf2 in CMakeList.txt, but I want to use tf. Edit 1: After the changes, yo

2021-12-07 21:21:24 -0500 commented question How to resolve fatal error: transform_listener.h: No such file or directory?

@osilva then I will also have to change tf to tf2 in CMakeList.txt, but I want to use tf. Edit 1: After the changes, yo

2021-12-07 21:12:36 -0500 commented question How to resolve fatal error: transform_listener.h: No such file or directory?

@osilva then I will also have to change tf to tf2 in CMakeList.txt, but I want to use tf.

2021-12-07 14:34:14 -0500 edited question How to resolve fatal error: transform_listener.h: No such file or directory?

How to resolve the fatal error: transform_listener.h: No such file or directory? I am using ROS noetic on ubuntu 20.04.

2021-12-07 14:33:56 -0500 asked a question How to resolve fatal error: transform_listener.h: No such file or directory?

How to resolve the fatal error: transform_listener.h: No such file or directory? I am using ROS noetic on ubuntu 20.04.

2021-11-01 19:56:15 -0500 received badge  Notable Question (source)
2021-11-01 19:56:15 -0500 received badge  Popular Question (source)
2021-10-21 18:30:20 -0500 commented answer why the turtle2 follow turtle1 in tf2 tutorials?

The line which I mentioned, does that line of code gives pose of turtle1 w.r.t turtle_name i.e.turtle2? I don't want to

2021-10-21 16:50:42 -0500 commented answer why the turtle2 follow turtle1 in tf2 tutorials?

The line which I mentioned, does that line of code gives pose of turtle1 w.r.t turtle_name i.e.turtle2? I don't want to

2021-10-21 16:29:20 -0500 commented answer why the turtle2 follow turtle1 in tf2 tutorials?

Thank you for answering Osilva. Can you tell which line of code calculates the difference between the coordinates frame?

2021-10-21 16:28:38 -0500 commented answer why the turtle2 follow turtle1 in tf2 tutorials?

Thank you for answering Osilva. Can you tell which line of code calculates the difference between the coordinates frame?

2021-10-21 16:13:19 -0500 commented question why the turtle2 follow turtle1 in tf2 tutorials?

Does this code ''trans = tfBuffer.lookup_transform(turtle_name, 'turtle1', rospy.Time())'' gives pose of turtle1 w.r.t t

2021-10-21 14:22:45 -0500 edited question why the turtle2 follow turtle1 in tf2 tutorials?

why the turtle2 follow turtle1 in tf2 tutorials? I am following the Python tutorials of tf2 - http://wiki.ros.org/tf2/Tu

2021-10-21 14:22:45 -0500 received badge  Editor (source)
2021-10-21 14:22:36 -0500 edited question why the turtle2 follow turtle1 in tf2 tutorials?

why the two turtle2 follow turtle1 in tf2 tutorials? I am following the Python tutorials of tf2 - http://wiki.ros.org/tf

2021-10-21 14:22:20 -0500 asked a question why the turtle2 follow turtle1 in tf2 tutorials?

why the two turtle2 follow turtle1 in tf2 tutorials? I am following the Python tutorials of tf2 - http://wiki.ros.org/tf

2021-10-20 06:53:42 -0500 answered a question how to install PCL on ubuntu

https://pointclouds.org/downloads/

2021-10-10 16:04:05 -0500 commented question rqt_joint_trajectory controller : Import Error: no module named rospkg.rospack

How to solve this?

2021-10-10 16:04:05 -0500 received badge  Commentator
2021-10-09 18:49:05 -0500 commented question roslaunch panda_moveit_config demo.launch rviz_tutorial:=true is not working

How to get the "panda_arm_hand.urdf.xacro" file? I am following a tutorial which requires this file. I am facing the sam

2021-10-09 18:47:12 -0500 commented answer roslaunch panda_moveit_config demo.launch rviz_tutorial:=true is not working

It works but this will not give us the hand of the robot. It will only give the arm.

2021-10-04 08:19:27 -0500 commented answer Difference between rospy.spin and rospy.sleep

I didn't understand the part "It is used when your node has to do some kind of regular processing in addition to respon

2021-10-04 08:19:02 -0500 commented answer Difference between rospy.spin and rospy.sleep

I didn't understand the part "It is used when your node has to do some kind of regular processing in addition to respon

2021-10-04 07:38:57 -0500 received badge  Enthusiast
2021-10-03 21:07:13 -0500 commented answer What is the difference between publisher-subscriber vs. server-client?

What does "For example, in pubsub, if client a and b make a request and you process them and output two responses, how d

2021-10-02 01:01:38 -0500 asked a question How to publish and use jont angles to a subscriber node using rostopic pub /topic_name ....?

How to publish and use jont angles to a subscriber node using rostopic pub /topic_name ....? I tired using Quaternions l

2021-09-26 20:41:58 -0500 commented answer Terminal Freezes after roslaunch event

Thanks it worked

2021-09-26 20:16:06 -0500 commented answer Gazebo command doesn't open Gazebo

I was not able to edit that file. My computer doesnt let me edit that file. What should I do?

2021-09-13 08:03:57 -0500 received badge  Supporter (source)
2021-09-13 08:03:18 -0500 commented answer How to change the background color in the turtlesim tutorial?

Thank you Osliva. I was using the wrong node in my command that's why the color was not changing. That node was closed b

2021-09-13 04:39:57 -0500 commented question How to change the background color in the turtlesim tutorial?

I think I got the answer but not the solution. This worked- ($ rosparam set /my_turtle/background_r 150) but not this -

2021-09-13 04:39:51 -0500 commented question How to change the background color in the turtlesim tutorial?

I am new to ROS, Linux and this ROS community.