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

rosusernli's profile - activity

2022-03-10 02:50:15 -0500 received badge  Taxonomist
2019-08-08 10:34:51 -0500 received badge  Famous Question (source)
2018-12-30 23:50:47 -0500 received badge  Famous Question (source)
2018-12-18 07:04:57 -0500 received badge  Notable Question (source)
2018-12-18 07:04:57 -0500 received badge  Popular Question (source)
2018-12-13 02:54:00 -0500 marked best answer ROS indigo Installation Dependency issue

I am trying to install ROS Indigo in ubuntu 14.04.The link for installation is

http://wiki.ros.org/indigo/Installation/Ubuntu

When I give the following install command in my terminal

sudo apt-get install ros-indigo-desktop-full

the output messages i get is

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python-rosdep : Depends: python-rosdistro (>= 0.4.0) but it is not going to be installed
 ros-indigo-desktop-full : Depends: ros-indigo-desktop but it is not going to be installed
                           Depends: ros-indigo-perception but it is not going to be installed
                           Depends: ros-indigo-simulators but it is not going to be installed
                           Depends: ros-indigo-urdf-tutorial but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I tried

apt-get -f install

and got

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

So I tried with

sudo apt-get -f install

then i get an error

dpkg-deb: error: archive '/var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/python-rosdistro-modules_0.7.0-1_all.deb
 /var/cache/apt/archives/python-rosdistro_0.7.0-100_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried sudo apt-get clean and sudo apt-get autoremove

I also tried several steps which i got from other forums

sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists/*
sudo rm /var/cache/apt/*.bin
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get install -f

Nothing worked out.

Anybody have encountered or have an idea on how to solve this problem?

2018-12-12 23:19:44 -0500 commented question ROS indigo Installation Dependency issue

Thanks for the tip. It worked !!! I removed the broken and residual packages using sudo apt-get remove --purge $(sudo d

2018-12-12 23:19:12 -0500 commented question ROS indigo Installation Dependency issue

Thanks for the tip. It worked !!! I removed the broken and residual packages using sudo apt-get remove --purge $(sudo d

2018-12-12 06:20:46 -0500 commented question ROS indigo Installation Dependency issue

sudo apt-get update && sudo apt-get upgrade dpkg gives python-rosdep : Depends: python-rosdistro (>= 0.4.0)

2018-12-12 06:20:22 -0500 commented question ROS indigo Installation Dependency issue

sudo apt-get update && sudo apt-get upgrade dpkg gives python-rosdep : Depends: python-rosdistro (>= 0.4.0) b

2018-12-11 23:32:56 -0500 edited question ROS indigo Installation Dependency issue

ROS indigo Installation Dependency issue I am trying to install ROS Indigo in ubuntu 14.04.The link for installation is

2018-12-11 23:31:58 -0500 asked a question ROS indigo Installation Dependency issue

ROS indigo Installation Dependency issue I am trying to install ROS Indigo in ubuntu 14.04.The link for installation is

2018-07-09 23:14:20 -0500 received badge  Notable Question (source)
2018-05-11 04:01:28 -0500 received badge  Popular Question (source)
2018-05-10 13:39:38 -0500 received badge  Famous Question (source)
2018-03-27 06:54:37 -0500 commented answer catkin_make error on boost::bind during synchronizer callback

Yes the function can be declared without class definition. I wrote the class implementation for readability and possibil

2018-03-25 14:50:08 -0500 received badge  Famous Question (source)
2018-03-23 08:38:24 -0500 received badge  Teacher (source)
2018-03-23 08:38:24 -0500 received badge  Self-Learner (source)
2018-03-23 08:38:03 -0500 received badge  Notable Question (source)
2018-02-15 06:08:29 -0500 received badge  Student (source)
2018-02-13 03:57:48 -0500 asked a question debug multiple ROS nodes from eclipse

debug multiple ROS nodes from eclipse Hi All, I want to debug my ROS code in eclipse. I have different nodes from diffe

2018-01-31 00:45:53 -0500 received badge  Notable Question (source)
2018-01-25 05:58:12 -0500 received badge  Popular Question (source)
2017-11-04 06:24:53 -0500 received badge  Famous Question (source)
2017-10-27 07:00:13 -0500 marked best answer running different nodes from a shell script

I have different nodes from different packages and I want to run it from a single shell script. The description is given below:

I have 3 different packages and each package contains 3 different nodes

(sample directory structure)
    package_name1
    |— src
        |— node1_node.cpp
    |— CMakeLists.txt
    |— package.xml

    package_name2
    |— src
        |— node2_node.cpp
    |— CMakeLists.txt
    |— package.xml

    package_name3
    |— src
        |— node3_node.cpp
    |— CMakeLists.txt
    |— package.xml

Each package has 1 executable. Every time I have to go to each executable path and execute. Instead of that I want to write a single script which will run the 3 different executable from 3 packages.

Is there a way to do that?

I tried by running the script:

cd path_to_package_name1/devel/lib/package_name1
./node1_node
cd path_to_package_name2/devel/lib/package_name2
./node2_node
cd path_to_package_name3/devel/lib/package_name3
./node3_node

But it is executing only the first node.How can I execute the 3 nodes together?

2017-10-27 04:59:17 -0500 commented answer running different nodes from a shell script

Thanks for your answer and suggestion. I found out why it was giving 'package not found' . There was a space in my file

2017-10-27 02:58:29 -0500 commented answer running different nodes from a shell script

I usually run the executable directly rather than using rosrun. But when I used rosrun the following error occured: 'pac

2017-10-26 22:58:16 -0500 received badge  Popular Question (source)
2017-10-26 06:57:56 -0500 asked a question running different nodes from a shell script

running different nodes from a shell script I have different nodes from different packages and I want to run it from a s

2017-10-22 23:28:25 -0500 marked best answer Publish and subscribe array of vector as message

Hi all, I am trying to send an array of vector<points> from one node to another node as a message. The message contains this array and other message fields as well.

My cpp file has the following array vector:

 Vector<Point> distancePoints[11];

The above array of vector is the one I need to publish and subscribe.

For example, distancePoints[0] contains vector< Point > from distance 1m and so on. Point contains x and y coordinates. Point is an opencv 2D point class.

Is it possible to publish and receive such array of vector using ROS messages? Does anyone have an idea about how it can be done? What will be the structure of message header?

2017-10-22 23:28:25 -0500 received badge  Scholar (source)
2017-10-22 23:27:57 -0500 commented answer Publish and subscribe array of vector as message

Thank you for your detailed answer. It was really helpful for me. The code compiled and worked perfectly. But I was not

2017-10-19 16:15:43 -0500 received badge  Notable Question (source)
2017-10-19 11:03:52 -0500 received badge  Popular Question (source)
2017-10-19 05:00:58 -0500 asked a question Publish and subscribe array of vector as message

Publish and subscribe array of vector as message Hi all, I am trying to send an array of vector<points> from one n

2017-10-16 04:22:16 -0500 received badge  Enthusiast
2017-10-16 04:22:15 -0500 received badge  Enthusiast
2017-10-04 07:19:15 -0500 marked best answer catkin_make error on boost::bind during synchronizer callback

I am getting an error related to boost when trying to time synchronize two images from topics. It is showing an error in the boost::bind function during callback which i am not sure how to correct it.


A portion of the build output is listed below:

/usr/include/boost/bind/mem_fn_template.hpp: In instantiation of ‘R boost::_mfi::mf2<R, T, A1, A2>::call(U&, const void*, B1&, B2&) const [with U = StereoGrabber (*)(); B1 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >; B2 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >; R = void; T = StereoGrabber; A1 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&; A2 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&]’:
/usr/include/boost/bind/mem_fn_template.hpp:286:46:   required from ‘R boost::_mfi::mf2<R, T, A1, A2>::operator()(U&, A1, A2) const [with U = StereoGrabber (*)(); R = void; T = StereoGrabber; A1 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&; A2 = const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&]’
/usr/include/boost/bind/bind.hpp:392:34:   required from ‘void boost::_bi::list3<A1, A2, A3>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_mfi::mf2<void, StereoGrabber, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&>; A = boost::_bi::list9<const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&>; A1 = boost::_bi::value<StereoGrabber (*)()>; A2 = boost::arg<1>; A3 = boost::arg<2>]’
/usr/include/boost/bind/bind_template.hpp:305:59:   required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&) [with A1 = boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >; A2 = boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >; A3 = boost::shared_ptr<const message_filters::NullType>; A4 = boost::shared_ptr<const message_filters::NullType>; A5 = boost::shared_ptr<const message_filters::NullType>; A6 = boost::shared_ptr<const message_filters::NullType>; A7 = boost::shared_ptr<const message_filters::NullType>; A8 = boost::shared_ptr<const message_filters::NullType>; A9 = boost::shared_ptr<const message_filters::NullType>; R = void; F = boost::_mfi::mf2<void, StereoGrabber, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&>; L = boost::_bi::list3<boost::_bi::value<StereoGrabber (*)()>, boost::arg<1>, boost::arg<2> >; boost::_bi::bind_t<R, F, L>::result_type = void]’
/usr/include/boost/bind/bind.hpp:827:34:   required from ‘void boost::_bi::list9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_bi::bind_t<void, boost::_mfi::mf2<void, StereoGrabber, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&>, boost::_bi::list3<boost::_bi::value<StereoGrabber (*)()>, boost::arg<1>, boost::arg<2> > >; A = boost::_bi::list9<const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const ...
(more)
2017-09-21 07:09:13 -0500 answered a question catkin_make error on boost::bind during synchronizer callback

Found out the mistake while building. I didn't notice it first. The Problem was with the class object declaration. S

2017-09-21 03:01:53 -0500 asked a question catkin_make error on boost::bind during synchronizer callback

catkin_make error on boost::bind during synchronizer callback I am getting an error related to boost when trying to time