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

hvn's profile - activity

2018-11-24 04:57:40 -0500 received badge  Famous Question (source)
2018-04-10 00:15:56 -0500 received badge  Notable Question (source)
2018-01-30 22:47:34 -0500 received badge  Famous Question (source)
2018-01-30 22:43:25 -0500 received badge  Famous Question (source)
2017-10-26 08:18:36 -0500 received badge  Notable Question (source)
2017-09-10 08:10:26 -0500 received badge  Popular Question (source)
2017-09-07 05:10:20 -0500 received badge  Popular Question (source)
2017-09-03 09:26:06 -0500 edited question ImportError: No module named <name>.msg

ImportError: No module named <name>.msg Hi, I've created my own package and added my own message file. First, bot

2017-09-03 09:25:35 -0500 edited question ImportError: No module named <name>.msg

ImportError: No module named <name>.msg Hi, I've created my own package and added my own message file. First, bot

2017-09-03 08:57:32 -0500 edited question ImportError: No module named <name>.msg

ImportError: No module named <name>.msg Hi, I've created my own package and added my own message file. First, bot

2017-09-03 05:22:38 -0500 asked a question ImportError: No module named <name>.msg

ImportError: No module named <name>.msg Hi, I've created my own package and added my own message file. First, bot

2017-09-03 05:09:10 -0500 received badge  Famous Question (source)
2017-04-20 17:32:49 -0500 marked best answer How to start gscam in groovy/hydro ?

Hi,

There seems to be conflicting info about how to start and use gscam. http://wiki.ros.org/gscam states to go to the bin/ directory but http://answers.ros.org/question/91676... mentions something entirely different. Also, when trying, I find that ~/.ros/camera_info doesn't exist. Shouldn't this be installed with gscam ?

Thanks

2017-04-20 16:51:57 -0500 marked best answer Hydro for Ubuntu Precise armhf on new kernel

Hi,

I'm intending to test the following: run Ubuntu Precise armhf with ROS Hydro with kernel 3.10. Having read that Hydro is supported up to Raring (kernel 3.8), I think that my combination will result in a non-working situation. Any suggestions ?

Thanks

2017-02-22 05:04:45 -0500 received badge  Famous Question (source)
2017-01-09 13:59:26 -0500 received badge  Famous Question (source)
2017-01-09 13:37:31 -0500 commented answer Import error: no module named Num.msg

Thank you. Now it works.

2017-01-09 11:47:59 -0500 commented answer Import error: no module named Num.msg

I changed Num.msg into robot_pi.msg and changed CMakelists.txt accordingly. New robot_pi.msg doesn't contain Num but "int32[] data". So how is the message name Num? I assume create the publisher is pub = rospy... so int32 should be replaced by the message name?

2017-01-09 07:08:52 -0500 received badge  Notable Question (source)
2017-01-09 03:51:07 -0500 received badge  Popular Question (source)
2017-01-09 03:42:10 -0500 commented answer Import error: no module named Num.msg

Ok, I've changed its name to robot_pi.msg, leaving its content intact: [code]int32[] data[/code] Now I want to this for publishing: pub=rospy.Publisher('speaker', int32, queue_size=10) a=robot_pi() a.data=[1,2,3] and still get the errors. Where do I go wrong?

2017-01-09 02:57:52 -0500 received badge  Notable Question (source)
2017-01-08 13:48:46 -0500 received badge  Popular Question (source)
2017-01-08 11:58:58 -0500 asked a question Import error: no module named Num.msg

Hi,

I want to use my own msg, and try this:

from Num.msg import *

and get the import error. Num.msg is in <package>/msg/ and is found by "rosmsg show". When I don't import, codeline "a = Num()" gets error "Global name 'Num' is not defined". What do I miss?

Thanks,

hvn

2017-01-08 06:13:40 -0500 commented question unable to load msg: invalid name

Thank you! This works.

2017-01-08 06:05:17 -0500 asked a question unable to load msg: invalid name

Hi,

Using Ubuntu 16.04, ROS Kinetic and Python, I've created a msg in ~/catkin_ws/src/roboti_pi/msg: Num.msg with content:

int32[] data

My code to use this message:

a = Num() a.data = [1, 2, 3]

This somehow gives an error for Num() so from ~/catkin_ws, I checked as shown at http://wiki.ros.org/ROS/Tutorials/Cre... with "rosmsg show src/roboti_pi/msg/Num and the result is

unable to load msg [src/roboti_pi/msg/Num]: invalid name [src/roboti_pi/msg/Num]

But what's invalid about it?

Thanks,

hvn

2016-10-14 05:48:09 -0500 received badge  Notable Question (source)
2016-08-01 03:07:54 -0500 commented question $(catkin_LIBRARIES): no such files or directory

Thanks for your response. William's answer solved it.

2016-08-01 03:06:53 -0500 commented answer $(catkin_LIBRARIES): no such files or directory

Thank you. This did the trick.

2016-07-28 01:47:42 -0500 received badge  Notable Question (source)
2016-07-28 01:47:42 -0500 received badge  Popular Question (source)
2016-07-26 13:50:45 -0500 received badge  Popular Question (source)
2016-07-26 03:37:20 -0500 asked a question $(catkin_LIBRARIES): no such files or directory

Hi,

I've created 2 packages and catkin_make results in twice the error above. The only dependencies in both CMakeList.txt and packages.xml are rospy, roscpp and std_msgs which are there. In $ROS_PACKAGE_PATH, the ROS path is present, but not the path to my newly created packages. Is this a necessity? Any help or hints is appreciated.

Thanks

hvn

2016-05-30 09:03:09 -0500 marked best answer eigen in groovy for ubuntu 12.04 armhf

Hi,

I'm installing ROS packages on Ubuntu Armhf, and although so far everything went fine, I find a difference with electric. According to http://answers.ros.org/question/10940/eigen-in-ros/, eigen is a system dependency. However, I can't find such package for groovy, except eigen-conversions, eigen-stl, ecl-eigen. I installed them, but the installation keeps complaining eigen isn't there. Apart from cross-compiling which I try to avoid, is there any solution ?

2016-05-30 09:00:32 -0500 marked best answer brightness of uvc_camera on Hydro armhf

Hi,

Although uvc_camera works, the brightness settings are set to maximum and looking at https://github.com/ktossell/camera_um... this is hardcoded. So my question is if/how I can change this without (much) hassle ? I don't have a calibration xml file, and doubt using one will overrule the cpp settings. Right now I have to work in semi-darkness to get some nice images.

Thanks.

2016-05-30 08:24:05 -0500 asked a question Beckhoff driver without using EtherCAT

Hi,

I'm looking for a ROS driver that I can use with a Beckhoff plc but without using EtherCAT. All information about Beckhoff I can find so far is: http://rosindustrial.org/news/2016/2/... and https://github.com/smits/soem which are clearly about EtherCAT. Is there any other information?

Thanks

hvn

2016-05-24 01:56:37 -0500 asked a question rosbag only record at edge trigger

Hi,

Is it possbile to have rosbag only record a topic when this topic has a certain value, e.g. 0, 1, 2 and ignore 0.1 - 0.9, 1.1 - 1.9, etc. to reduce the amount of data being recorded?

Thanks.

2016-05-09 21:01:25 -0500 marked best answer groovy gscam for 12.04armhf not existing ?

Hi,

I want to install groovy gscam on 12.04armhf and find it likely doesn't exist since it doesn't show up in synaptic, unlike groovy gscam on x86. Before I try to build it myself, has anyone else tried it (@ahendrix)?

Thanks.

2016-05-09 21:01:17 -0500 marked best answer check for active state of topic

Hi,

I have 2 nodes, 1 publishing the topic, 1 subscribing to that topic. Current situation is that when I start the subscribing node, the values that will be read from the topic are initialized to 0. After reading from the topic, they get the correct values, but when the topic stops publishing they keep that value which may no longer be correct. In that case I want the values set to 0 again. How can I (from within the subscribing node, i.e. not using the rostopic command) check if the publishing topic is still active ?

Thanks

2016-05-09 21:00:20 -0500 received badge  Famous Question (source)
2016-05-09 21:00:15 -0500 received badge  Famous Question (source)
2016-05-08 15:17:41 -0500 marked best answer ambiguous use of header file

Hi,

I want to use a package::header as usual like this:

void callbackBB(package_msgs::header msgs_x)
{
}

but the compiler indicates the headerfile is ambiguous and should be used like

header()

or

header(const package_msgs::header<#0> &)

Does this mean this header can't be instantiated ? The writer doesn't give support so can't ask. Thanks.

Code sample:

void  callback_BB_Twist(amigo_msgs::arm_links msgs_ls_t)

Error by Eclipse

Description
'amigo_msgs::arm_links' is ambiguous '
Candidates are:
arm_links()
arm_links(const amigo_msgs::arm_links<#0> &)

Compiler error:

error: ‘amigo_msgs::arm_links’ is not a type

A full minimal example:

#include "amigo_msgs/arm_links.h"
class ImageP
{
    void callbackBB(amigo_msgs::armlinks msgs_x)
    {
    }
    ImageP(ros::nodehandle* n)
    {
         ls_sub = n->subscribe("<topic>", &ImageP::callbackBB, this);
    }
    void run()
    {
    }
};
int main()
{
    ros::init(argc,argv,"imagedo");
    ros::Rate loop_rate(30);
    while(ros::ok())
    {
        imagep.run();
        ros::spinOnce();
        loop_rate.sleep;
     }
}
2016-05-08 15:01:38 -0500 marked best answer reuse of old packages with catkin

Hi,

I have a few packages that were created using roscreate-pkg under Electric. Now, due to the use of other hardware (armhf) and driver availability, I have to use Hydro. Since this uses catkin instead of rosbuild, I wonder if the packages can be used just like that or have to be recreated using catkin-create-pkg.

Thanks

2016-05-08 14:59:42 -0500 received badge  Notable Question (source)
2016-05-08 14:59:42 -0500 received badge  Popular Question (source)