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

koprenee's profile - activity

2012-11-24 19:53:32 -0500 received badge  Famous Question (source)
2012-09-25 20:57:35 -0500 received badge  Famous Question (source)
2012-09-15 10:05:29 -0500 received badge  Famous Question (source)
2012-08-26 17:04:14 -0500 received badge  Notable Question (source)
2012-08-21 19:40:58 -0500 received badge  Notable Question (source)
2012-08-21 19:40:58 -0500 received badge  Popular Question (source)
2012-08-20 02:30:06 -0500 received badge  Popular Question (source)
2012-08-15 09:03:44 -0500 received badge  Notable Question (source)
2012-08-15 09:03:44 -0500 received badge  Popular Question (source)
2012-07-27 12:59:57 -0500 received badge  Student (source)
2012-07-27 11:04:24 -0500 asked a question mjpeg_sever cmake error:Unknown CMake command "catkin_project".

I follow the http://www.ros.org/wiki/mjpeg_server

and svn co http://svn.code.sf.net/p/bosch-ros-pkg/code/trunk/stacks/remote_lab/mjpeg_server

But when I cmake it. there's error:

CMake Error at CMakeLists.txt:12 (catkin_project): Unknown CMake command "catkin_project".

How to deal with it ?

2012-07-24 19:26:22 -0500 answered a question rosbridge how to subscribe from multi rostopic

Thank you, It's helpful for me!

2012-07-24 14:44:46 -0500 answered a question rosbridge how to subscribe from multi rostopic

Actually, I can use "connection.addHandler('/a',function(msg) {.....});" to get msg from topic /a .
And what I want is to use msg from both topic /a and topic /b in the same handler.

I'm not sure there's any way to use msg from two topics in one handler.

By the way, using your example I found that rsp is "OK" but not the msg from topic, so what does the rsp's content mean? just subscribe is successful?

Thank you for your kindness!

2012-07-24 11:21:20 -0500 asked a question rosbridge how to subscribe from multi rostopic

I know that use such function I can use msg subscribe from the topic called /sensorPacket:

connection.callService('/rosjs/subscribe','["/sensorPacket",0]',function(rsp) { alert('subscribed to /sensorPacket'); });

But I want information from 2 topics, for example /a and /b . How can I realize? can I just use in such way:

connection.callService('/rosjs/subscribe','["/a,/b",0]',function(rsp) { alert('subscribed to /sensorPacket'); });

2012-07-20 11:38:24 -0500 received badge  Scholar (source)
2012-07-20 11:38:21 -0500 answered a question rosbridge connection closed

Thank you so much! Yep, there`s such bug in rosbridge download from source. It has been solved after I use the version checkout from svn.

2012-07-20 09:28:01 -0500 answered a question rosbridge connection closed

Thank you for your answer, but it still doesn't work. I'm using the latest chromium broswer.

However I found that when I use ws://hostname:9090 ,there're nothing report under rosbridge, and when I change to ws://localhost:9090 and ws://127.0.0.1:9090 "closed 10" error will be reported under rosbridge's running

One more thing ,when I test in latest Firefox, it will always report "error!" but in Chromium, it always be "connection closed"...It's strange...

2012-07-20 09:18:39 -0500 received badge  Supporter (source)
2012-07-19 19:08:34 -0500 received badge  Editor (source)
2012-07-19 15:21:10 -0500 asked a question rosbridge connection closed

I have already rosrun rosbridge rosbridge.py

And then when I run a test html file in browser "connection closed" has been showed...why it can`t connect to rosbridge?

html file:
<html>
<head>
<script type="text/javascript" src="http://brown-ros-pkg.googlecode.com/svn/tags/brown-ros-pkg/rosbridge/ros.js">
</script>
<script type="text/javascript">
function main() {
var connection = new ros.Connection("ws://hostname:9090");
connection.setOnClose(function (e) {
document.write('connection closed');
});
connection.setOnError(function (e) {
document.write('error!');
});
connection.setOnOpen(function (e) {
document.write('connected to ROS');
});
}
</script>
</head>
<body onload="main()">
</body>
</html>