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

garym's profile - activity

2019-02-21 13:53:41 -0500 received badge  Student (source)
2015-10-21 10:40:23 -0500 received badge  Famous Question (source)
2015-09-18 18:59:51 -0500 received badge  Notable Question (source)
2015-09-18 18:59:51 -0500 received badge  Popular Question (source)
2015-02-19 02:01:35 -0500 received badge  Popular Question (source)
2015-01-27 19:18:43 -0500 received badge  Famous Question (source)
2015-01-27 19:18:43 -0500 received badge  Notable Question (source)
2014-12-07 05:08:27 -0500 received badge  Famous Question (source)
2014-09-12 04:46:39 -0500 received badge  Popular Question (source)
2014-09-12 04:46:39 -0500 received badge  Notable Question (source)
2014-08-06 09:09:11 -0500 received badge  Famous Question (source)
2014-05-24 13:38:19 -0500 asked a question Get error when trying to publish float64 arm message

Get an error(see below) when trying to publish a float64 arm command.

Using Ubuntu 12.04.1 Ros Hydro

source file:

#include "ros/ros.h"
#include <std_msgs/Float64.h>
#include "pub/ArmPan.h"

pub::ArmPan panmsg;

int main(int argc, char **argv)
{
    ros::init(argc, argv, "pub");
    ros::NodeHandle n;
    ros::Publisher ArmPan_pub = n.advertise<std_msgs::Float64>("ArmPan/command", 1000);
    ros::Rate loop_rate(10);
    int count = 0;

    while(ros::ok())
    {
        panmsg.ArmPan = 1.0;
        ArmPan_pub.publish(panmsg);
        ros::spinOnce();
        loop_rate.sleep();
        ++count;
    }
    return 0;
}

the file ArmPan.msg has one line: float64 ArmPan

rosrun fails with this err:

[FATAL] Assertion failed
file = /opt/ros/hydro/include/ros/publisher.h
line 115
cond = impl_->md5sum == "*" || std::string(mt::md5sum<M>(message))
             == "*" || impl_->md5sum == mt::md5sum<M>(message)
Trying to publish message of type [pub/ArmPan] on a publisher with type [std_msgs/Float64]

if the message

rostopic pub -1 ArmPan/command std_msgs/Float64 1

is entered, it works.

This code worked in earlier versions of ROS but now fails with Hydro. Can you tell me why? Thanks.

2014-04-14 01:39:05 -0500 received badge  Famous Question (source)
2014-04-14 01:39:00 -0500 received badge  Notable Question (source)
2014-04-14 01:39:00 -0500 received badge  Popular Question (source)
2014-01-31 22:12:41 -0500 received badge  Famous Question (source)
2014-01-29 05:27:55 -0500 received badge  Notable Question (source)
2014-01-29 05:27:55 -0500 received badge  Popular Question (source)
2014-01-28 17:28:25 -0500 marked best answer Fuerte ROS install fails Ubuntu 12.04 with unmet dependencies

$ sudo sh -c 'echo "deb //packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list' [sudo] password for gary: $ wget //packages.ros.org/ros.key -O - | sudo apt-key add - --2012-12-12 10:40:05-- //packages.ros.org/ros.key Resolving packages.ros.org (packages.ros.org)... 70.35.54.209 Connecting to packages.ros.org (packages.ros.org)|70.35.54.209|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1162 (1.1K) [application/pgp-keys] Saving to: `STDOUT'

100%[======================================>] 1,162 --.-K/s in 0s

2012-12-12 10:40:16 (59.8 MB/s) - written to stdout [1162/1162]

OK $ sudo apt-get update Ign //packages.ros.org precise InRelease Get:1 //packages.ros.org precise Release.gpg [198 B]
Get:2 //packages.ros.org precise Release [3,046 B]
Get:3 //packages.ros.org precise/main i386 Packages [84.0 kB]
Ign //us.archive.ubuntu.com quantal InRelease
Ign //us.archive.ubuntu.com quantal-updates InRelease
Ign //extras.ubuntu.com quantal InRelease
Ign //security.ubuntu.com quantal-security InRelease
Ign //us.archive.ubuntu.com quantal-backports InRelease
Get:4 //extras.ubuntu.com quantal Release.gpg [72 B]
Hit //us.archive.ubuntu.com quantal Release.gpg
Get:5 //security.ubuntu.com quantal-security Release.gpg [933 B] Get:6 //us.archive.ubuntu.com quantal-updates Release.gpg [933 B]
Get:7 //extras.ubuntu.com quantal Release [11.9 kB]
Get:8 //security.ubuntu.com quantal-security Release [49.6 kB]
Get:9 //us.archive.ubuntu.com quantal-backports Release.gpg [933 B]
Ign //packages.ros.org precise/main Translation-en_US
Ign //packages.ros.org precise/main Translation-en
Hit //us.archive.ubuntu.com quantal Release
Get:10 //us.archive.ubuntu.com quantal-updates Release [49.6 kB]
Get:11 //security.ubuntu.com quantal-security/main Sources [20.9 kB]
Get:12 //extras.ubuntu.com quantal/main Sources [1,898 B]
Get:13 //us.archive.ubuntu.com quantal-backports Release [49.6 kB]
Get:14 //security.ubuntu.com quantal-security/restricted Sources [14 B]
Get:15 //extras.ubuntu.com quantal/main i386 Packages [2,713 B]
Hit //us.archive.ubuntu.com quantal/main Sources
Hit //us.archive.ubuntu.com quantal/restricted Sources
Get:16 //security.ubuntu.com quantal-security/universe Sources [6,763 B] Hit //us.archive.ubuntu.com quantal/universe Sources
Get:17 //security.ubuntu.com quantal-security/multiverse Sources [695 B] Hit //us.archive.ubuntu.com quantal/multiverse Sources
Hit //us.archive.ubuntu.com quantal/main i386 Packages
Get:18 //security.ubuntu.com quantal-security/main i386 Packages [57.0 kB] Hit //us.archive.ubuntu.com quantal/restricted i386 Packages
Hit //us.archive.ubuntu.com quantal/universe i386 Packages
Hit //us.archive.ubuntu.com quantal/multiverse i386 Packages
Get:19 //security.ubuntu.com quantal-security/restricted i386 Packages [14 B] Get:20 //security.ubuntu.com quantal-security/universe i386 Packages [18.2 kB] Hit //us.archive.ubuntu.com quantal/main Translation-en
Get:21 //security.ubuntu.com quantal-security/multiverse i386 Packages [1,394 B] Hit //us.archive.ubuntu.com quantal/multiverse Translation-en
Ign //extras.ubuntu.com quantal/main Translation-en_US
Hit //us.archive.ubuntu.com quantal ...

































(more)

2014-01-03 03:24:47 -0500 received badge  Notable Question (source)
2013-12-22 15:02:16 -0500 received badge  Notable Question (source)
2013-12-16 20:09:20 -0500 received badge  Popular Question (source)
2013-12-12 13:08:02 -0500 asked a question What does thie publish error mean?

I am asking the question a third time since the error data keeps getting deleted, could it be because it is in brackets, I removed them?

I upgraded from Fuerte to Hydro and now get this error. This message worked under Fuerte. Can someone explain what this error message does not like. The message ArmShoulder is a std_msgs/Float64 format. If I manually execute: "rostopic pub -1 ArmShoulder/command std_msgs/Float64 -- 1" it works fine.

FATAL 1386892567.718265095: ASSERTION FAILED
    file = /opt/ros/hydro/include/ros/publisher.h
    line = 115
    cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
    message = 
FATAL 1386892567.718535748: Trying to publish message of type Leaf_IO/ArmShoulder/2d33c1b01ec825442fc2f0e7ef5ae41a] on a publisher with type [std_msgs/Float64/fdb28210bfa9d7c91146260178d9a584
FATAL 1386892567.718684125:
2013-12-12 12:46:03 -0500 asked a question What does this publish error mean?

I upgraded from Fuerte to Hydro and now get this error. This message worked under Fuerte. Can someone explain what this error message does not like. The message ArmShoulder is a std_msgs/Float64 format. If I manually execute: "rostopic pub -1 ArmShoulder/command std_msgs/Float64 -- 1" it works fine.

file = /opt/ros/hydro/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
2013-12-12 12:41:28 -0500 asked a question What does this publish error mean?

I upgraded from Fuerte to Hydro and now get this error. This message worked under Fuerte. Can someone explain what this error message does not like. The message ArmShoulder is a std_msgs/Float64 format. If I manually execute: "rostopic pub -1 ArmShoulder/command std_msgs/Float64 -- 1" it works fine.

file = /opt/ros/hydro/include/ros/publisher.h
line = 115
cond = impl_->md5sum_ == "*" || std::string(mt::md5sum<M>(message)) == "*" || impl_->md5sum_ == mt::md5sum<M>(message)
message =
2013-12-07 22:31:13 -0500 received badge  Popular Question (source)
2013-12-07 05:42:40 -0500 commented question Why does install of ROS-hydro-joystick-drivers fail

That was the comment I needed to break my thought pattern. I found that running the robot software disconnected the network and thus when I stopped the robot software, the network was disconnected and the install failed. So after I reconnected the network, the install works. Thanks.

2013-12-07 05:35:25 -0500 received badge  Scholar (source)
2013-12-06 10:55:56 -0500 asked a question why does install of ros-hydro-joystick-drivers fail

I have tried several times with the same error. ROScore runs fine and the joystick data is seen by the OS, I don’t know how to debug this, seems that all the files cannot be downloaded. I am stuck, please help, thanks. Below is the error. Note: replaced http with hxxp since not enough karma to post links........

gary@robot-ubuntu:~/garysROS$ sudo apt-get install ros-hydro-joystick-drivers [sudo] password for gary:

Reading package lists... Done

Building dependency tree
Reading state information... Done

The following packages were automatically installed and are no longer required:

libwxbase2.8-dev texlive-pstricks-doc nvidia-cg-toolkit linux-headers-3.2.0-29 libyaml-dev texlive-pstricks linux-headers-3.2.0-29-generic-pae libprotoc-dev libnetpbm10-dev texlive-generic-recommended wx-common ps2eps x11proto-xf86vidmode-dev libnetpbm10 libxxf86vm-dev libwxgtk2.8-dev wx2.8-headers libcg libtar-dev

Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:

libspnav-dev libspnav0 ros-hydro-joy ros-hydro-ps3joy ros-hydro-spacenav-node ros-hydro-wiimote spacenavd

The following NEW packages will be installed:

libspnav-dev libspnav0 ros-hydro-joy ros-hydro-joystick-drivers ros-hydro-ps3joy ros-hydro-spacenav-node ros-hydro-wiimote spacenavd

0 upgraded, 8 newly installed, 0 to remove and 511 not upgraded.

Need to get 315 kB of archives.

After this operation, 1,514 kB of additional disk space will be used.

Do you want to continue [Y/n]? y

WARNING: The following packages cannot be authenticated!

libspnav0 libspnav-dev ros-hydro-joy ros-hydro-ps3joy spacenavd ros-hydro-spacenav-node ros-hydro-wiimote ros-hydro-joystick-drivers

Install these packages without verification [y/N]? y

Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joy i386 1.9.10-0precise-20131015-2137-+0000

Could not connect to packages.ros.org:80 (64.50.236.52). - connect (113: No route to host) [IP: 64.50.236.52 80]

Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-ps3joy i386 1.9.10-0precise-20131015-1947-+0000

Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]

Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-spacenav-node i386 1.9.10-0precise-20131015-2009-+0000

Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]

Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-wiimote i386 1.9.10-0precise-20131015-1947-+0000

Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]

Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joystick-drivers i386 1.9.10-0precise-20131015-2201-+0000

Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]

Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav0 i386 0.2.2-1ubuntu1 Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No route to host) [IP: 91.189.92.202 80]

Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav-dev i386 0.2.2-1ubuntu1 Unable to connect to mx.archive.ubuntu.com:hxxp: [IP: 91.189.92.202 80]

Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/universe spacenavd i386 0.5-1 Unable to connect to mx.archive.ubuntu.com:hxxp: [IP: 91.189.92.202 80]

Failed to fetch hxxp://mx.archive.ubuntu.com/ubuntu/pool/main/libs/libspnav/libspnav0_0.2.2-1ubuntu1_i386.deb Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No ... (more)

2013-12-06 10:43:12 -0500 asked a question Why does install of ROS-hydro-joystick-drivers fail

I have tried several times with same result. ROScore runs fine and the joystick data is seen by the OS. I don't really know how to debug this error, seems I can't get all the files downloaded. Below is the error.

Note: replaced http with hxxp since not enough karma to post links........

gary@robot-ubuntu:~/garysROS$ sudo apt-get install ros-hydro-joystick-drivers
[sudo] password for gary:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libwxbase2.8-dev texlive-pstricks-doc nvidia-cg-toolkit
  linux-headers-3.2.0-29 libyaml-dev texlive-pstricks
  linux-headers-3.2.0-29-generic-pae libprotoc-dev libnetpbm10-dev
  texlive-generic-recommended wx-common ps2eps x11proto-xf86vidmode-dev
  libnetpbm10 libxxf86vm-dev libwxgtk2.8-dev wx2.8-headers libcg libtar-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libspnav-dev libspnav0 ros-hydro-joy ros-hydro-ps3joy
  ros-hydro-spacenav-node ros-hydro-wiimote spacenavd
The following NEW packages will be installed:
  libspnav-dev libspnav0 ros-hydro-joy ros-hydro-joystick-drivers
  ros-hydro-ps3joy ros-hydro-spacenav-node ros-hydro-wiimote spacenavd
0 upgraded, 8 newly installed, 0 to remove and 511 not upgraded.
Need to get 315 kB of archives.
After this operation, 1,514 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libspnav0 libspnav-dev ros-hydro-joy ros-hydro-ps3joy spacenavd
  ros-hydro-spacenav-node ros-hydro-wiimote ros-hydro-joystick-drivers
Install these packages without verification [y/N]? y
Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joy i386 1.9.10-0precise-20131015-2137-+0000
  Could not connect to packages.ros.org:80 (64.50.236.52). - connect (113: No route to host) [IP: 64.50.236.52 80]
Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-ps3joy i386 1.9.10-0precise-20131015-1947-+0000
  Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]
Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-spacenav-node i386 1.9.10-0precise-20131015-2009-+0000
  Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]
Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-wiimote i386 1.9.10-0precise-20131015-1947-+0000
  Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]
Err hxxp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joystick-drivers i386 1.9.10-0precise-20131015-2201-+0000
  Unable to connect to packages.ros.org:hxxp: [IP: 64.50.236.52 80]
Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav0 i386 0.2.2-1ubuntu1
  Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No route to host) [IP: 91.189.92.202 80]
Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav-dev i386 0.2.2-1ubuntu1
  Unable to connect to mx.archive.ubuntu.com:hxxp: [IP: 91.189.92.202 80]
Err hxxp://mx.archive.ubuntu.com/ubuntu/ precise/universe spacenavd i386 0.5-1
  Unable to connect to mx.archive.ubuntu.com:hxxp: [IP: 91.189.92.202 80]
Failed to fetch 
hxxp://mx.archive.ubuntu.com/ubuntu/pool/main/libs/libspnav/libspnav0_0.2.2-1ubuntu1_i386.deb  Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No route to host) [IP ...
(more)
2013-12-05 12:53:42 -0500 asked a question install ros-hydro-joystick-drivers fail

note changed http to htp because not enough karma to post links...

gary@robot-ubuntu:~/garysROS$ sudo apt-get install ros-hydro-joystick-drivers
[sudo] password for gary: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libwxbase2.8-dev texlive-pstricks-doc nvidia-cg-toolkit
  linux-headers-3.2.0-29 libyaml-dev texlive-pstricks
  linux-headers-3.2.0-29-generic-pae libprotoc-dev libnetpbm10-dev
  texlive-generic-recommended wx-common ps2eps x11proto-xf86vidmode-dev
  libnetpbm10 libxxf86vm-dev libwxgtk2.8-dev wx2.8-headers libcg libtar-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libspnav-dev libspnav0 ros-hydro-joy ros-hydro-ps3joy
  ros-hydro-spacenav-node ros-hydro-wiimote spacenavd
The following NEW packages will be installed:
  libspnav-dev libspnav0 ros-hydro-joy ros-hydro-joystick-drivers
  ros-hydro-ps3joy ros-hydro-spacenav-node ros-hydro-wiimote spacenavd
0 upgraded, 8 newly installed, 0 to remove and 511 not upgraded.
Need to get 315 kB of archives.
After this operation, 1,514 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libspnav0 libspnav-dev ros-hydro-joy ros-hydro-ps3joy spacenavd
  ros-hydro-spacenav-node ros-hydro-wiimote ros-hydro-joystick-drivers
Install these packages without verification [y/N]? y
Err htp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joy i386 1.9.10-0precise-20131015-2137-+0000
  Could not connect to packages.ros.org:80 (64.50.236.52). - connect (113: No route to host) [IP: 64.50.236.52 80]
Err htp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-ps3joy i386 1.9.10-0precise-20131015-1947-+0000
  Unable to connect to packages.ros.org:http: [IP: 64.50.236.52 80]
Err htp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-spacenav-node i386 1.9.10-0precise-20131015-2009-+0000
  Unable to connect to packages.ros.org:http: [IP: 64.50.236.52 80]
Err htp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-wiimote i386 1.9.10-0precise-20131015-1947-+0000
  Unable to connect to packages.ros.org:http: [IP: 64.50.236.52 80]
Err htp://packages.ros.org/ros/ubuntu/ precise/main ros-hydro-joystick-drivers i386 1.9.10-0precise-20131015-2201-+0000
  Unable to connect to packages.ros.org:htp: [IP: 64.50.236.52 80]
Err htp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav0 i386 0.2.2-1ubuntu1
  Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No route to host) [IP: 91.189.92.202 80]
Err htp://mx.archive.ubuntu.com/ubuntu/ precise/main libspnav-dev i386 0.2.2-1ubuntu1
  Unable to connect to mx.archive.ubuntu.com:http: [IP: 91.189.92.202 80]
Err htp://mx.archive.ubuntu.com/ubuntu/ precise/universe spacenavd i386 0.5-1
  Unable to connect to mx.archive.ubuntu.com:http: [IP: 91.189.92.202 80]
Failed to fetch htp://mx.archive.ubuntu.com/ubuntu/pool/main/libs/libspnav/libspnav0_0.2.2-1ubuntu1_i386.deb  Could not connect to mx.archive.ubuntu.com:80 (91.189.92.202). - connect (113: No route to host) [IP: 91.189.92.202 80]
Failed to fetch htp://mx.archive.ubuntu.com/ubuntu/pool/main/libs/libspnav/libspnav-dev_0.2.2-1ubuntu1_i386.deb  Unable to connect to mx.archive.ubuntu.com:http: [IP: 91.189.92.202 80]
Failed to fetch htp://packages.ros ...
(more)
2013-01-23 12:38:55 -0500 received badge  Popular Question (source)
2012-12-19 16:39:41 -0500 received badge  Famous Question (source)
2012-12-14 10:30:07 -0500 received badge  Notable Question (source)
2012-12-13 02:17:52 -0500 received badge  Popular Question (source)