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

rinosh1989's profile - activity

2018-02-23 10:53:44 -0500 received badge  Notable Question (source)
2018-02-23 10:53:44 -0500 received badge  Popular Question (source)
2018-02-23 10:53:44 -0500 received badge  Famous Question (source)
2012-10-13 14:26:11 -0500 received badge  Famous Question (source)
2012-07-01 22:51:48 -0500 received badge  Notable Question (source)
2011-10-06 21:39:03 -0500 received badge  Popular Question (source)
2011-03-29 15:58:35 -0500 marked best answer video stream in ros

Did you export your ROS_IP or ROS_HOSTNAME on the other machine also? Otherwise could you post:

$env | grep ROS

And a image of rxgraph with all topics listed could solve the problem. Is there something published on the topic?

rostopic hz /gscam/image_raw
2011-03-12 21:16:39 -0500 received badge  Supporter (source)
2011-03-12 21:16:29 -0500 answered a question video stream in ros

this what i did on the robot

i set my export ROS_MASTER_URI=http://ip of robot:11311 and launched roscore then i ran rosrun gscam gscam in my laptop i ran export ROS_MASTER_URI=http://ip of robot:11311 then rosrun image_view image_view image:=/gscam/image_raw

I ran rostopic hz /gscam/image_raw and got subscribed to [/gscam/image_raw]

2011-03-11 18:13:18 -0500 asked a question video stream in ros

i started to stream video using ros by using ssh to connect to the target system where i have attached the camera. I launched a gscam node there and it is working. then in the other system i exported ros_master_uri. When i rostopic list the nodes. I shows /gscam/image_raw publishing. But when i run rosrun image_view image_view image:=/gscam/image_raw the window opens but no video. I did try compressed transport also. Could you please help me?

2011-03-03 14:03:38 -0500 marked best answer avr_bridge help

Not sure of this one but you wrote:

node.subscribe("call",response(&call_msg));

instead of:

node.subscribe("call",response,&call_msg);
2011-02-24 20:40:40 -0500 answered a question avr_bridge help

i will try that and see. Thanks.

2011-02-18 20:16:02 -0500 received badge  Editor (source)
2011-02-18 20:12:17 -0500 asked a question avr_bridge help

I tried to run the the 'hello' example given in the tutorial. I first generated avr_ros library which i then included in the libraries folder in arduino(/usr/share/arduino).I then edited the files to make all header refference local by removing "avr-ros/" from all headers. This the final program i got

#include&nbsp;<stdio.h>
#include&nbsp;<span style="color: #006699;">"ros.h"</span> <span style="color: #7E7E7E;">//main avrRos library</span>
#include&nbsp;<span style="color: #006699;">"String.h"</span> <span style="color: #7E7E7E;">//std_msg/String library</span>

namespace&nbsp;ros&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">int</span> fputc(<span style="color: #CC6600;">char</span> c, FILE *stream) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;"><b>Serial</b></span>.<span style="color: #CC6600;">write</span>(c);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">return</span> 0;
&nbsp;&nbsp;&nbsp;&nbsp;}
}

<span style="color: #7E7E7E;">//Define&nbsp;global&nbsp;message&nbsp;objects&nbsp;to&nbsp;use&nbsp;in</span>
<span style="color: #7E7E7E;">//the&nbsp;callback&nbsp;functions&nbsp;and&nbsp;throughout&nbsp;the&nbsp;program</span>
<span style="color: #7E7E7E;"><b>ros:</b></span>:Publisher resp;
<span style="color: #7E7E7E;"><b>std_msgs:</b></span>:String call_msg;
<span style="color: #7E7E7E;"><b>std_msgs:</b></span>:String response_msg;

<span style="color: #CC6600;">void</span> toggle()
{&nbsp;<span style="color: #7E7E7E;">//toggle an led to debug the program</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">static</span> <span style="color: #CC6600;">char</span> t=0;
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">if</span> (!t ) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">digitalWrite</span>(13, <span style="color: #006699;">HIGH</span>);   <span style="color: #7E7E7E;">// set the LED on</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;=&nbsp;1;
&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span style="color: #CC6600;">else</span> {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #CC6600;">digitalWrite</span>(13, <span style="color: #006699;">LOW</span>);    <span style="color: #7E7E7E;">// set the LED off</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;=&nbsp;0;
&nbsp;&nbsp;&nbsp;&nbsp;}
}

<span style="color: #CC6600;">void</span> response(Msg *msg){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;toggle();

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E;">//make sure that if you are manipulating the raw string,</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E;">//there is enough space in it</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #7E7E7E;">//to handle all of the data</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sprintf(response_msg.data.getRawString(),
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #006699;">"You sent : %s"</span>, call_msg.data.getRawString());
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;node.publish(resp ...
(more)