Ask Your Question

Kinna's profile - activity

2016-01-04 17:37:01 -0500 received badge  Good Question (source)
2014-10-21 08:11:45 -0500 received badge  Nice Question (source)
2014-09-23 10:39:56 -0500 received badge  Famous Question (source)
2014-03-28 07:47:06 -0500 received badge  Student (source)
2013-04-18 03:57:41 -0500 received badge  Famous Question (source)
2013-01-07 21:53:12 -0500 received badge  Notable Question (source)
2012-12-12 21:08:42 -0500 received badge  Popular Question (source)
2012-12-05 20:57:40 -0500 received badge  Famous Question (source)
2012-12-02 07:10:36 -0500 asked a question Language model with grammar for Pocketsphinx

Hi

Does anyone know if there's a way to include grammar in the language model for Pocketsphinx? Either by using a jsgf-file or something else.

Any ideas would be appreciated.

2012-11-06 02:15:51 -0500 received badge  Notable Question (source)
2012-11-04 03:43:09 -0500 received badge  Popular Question (source)
2012-11-02 01:08:31 -0500 received badge  Editor (source)
2012-11-01 23:23:30 -0500 asked a question Multiple parameters in subscribe method's callback function

Hi

I'm trying to make a subscription to a topic where the callback function takes 2 parameters, but I can't figure out how to write it. The function I want to call look like this:

void writeOut(const std_msgs::String::ConstPtr& msg, const sound_play::SoundClient& sound)
{
    // code here
}

The part where I try to subscribe to the topic looks like this:

int main(int argc, char **argv)
{
    ros::init(argc, argv, "name");
    ros::NodeHandle n;
    sound_play::SoundClient sound;

    ros::Subscriber sub = n.subscribe("topic-name",1000,writeOut);

    ros::spin();
    return 0;
}

I know that I can't just call the writeOut function like this. From searching around, I think I have to use something like boost::bind, but I can't figure out how to use it right.

The code is based on the tutorials, I'm just modifying it a bit.

Any help would be appreciated.

EDIT:

Using boost::bind as described in the answer narrowed the errors down, now I only get this error

'cref' was not declared in this scope

Do I need to use some external library?

2012-11-01 22:56:42 -0500 received badge  Notable Question (source)
2012-09-19 00:39:19 -0500 received badge  Popular Question (source)
2012-09-19 00:33:15 -0500 received badge  Supporter (source)
2012-09-19 00:33:00 -0500 received badge  Scholar (source)
2012-09-18 21:56:29 -0500 asked a question Error when trying to start rxconsole

Hi,

I'm new to ROS and can't figure out why I can't start rxconsole. I'm simply going through the tutorials and everything went fine until now. When I type rxconsole I get the following error:

(rxconsole:4996): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(rxconsole:4996): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(rxconsole:4996): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(rxconsole:4996): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
[ERROR] [1348039963.832866342]: [registerPublisher] Failed to contact master at [localhost:11311].  Retrying...

And then it's just stuck there. Does anyone know what the problem might be?

I'm using Ubuntu 11.10 in a virtual machine.