Ask Your Question

Pedrucius's profile - activity

2020-08-28 12:51:55 -0500 received badge  Student (source)
2016-12-29 05:12:25 -0500 received badge  Famous Question (source)
2016-09-27 05:12:24 -0500 received badge  Notable Question (source)
2016-07-11 02:40:26 -0500 received badge  Popular Question (source)
2016-06-18 00:40:23 -0500 asked a question Send a video using roslibjs

Hello everybody! I've finished the second roslibjs tutorial: "Publishing video and IMU messages with roslibjs" and I want to know if there is some way to send the video directly from the camera (canvas) without doing this step:

var data = canvas.toDataURL('image/jpeg');

var imageMessage = new ROSLIB.Message({
    format : "jpeg",
    data : data.replace("data:image/jpeg;base64,", "")
});

Can I send a "raw" image, or do I have to use a compressed image and the .jpeg format? I don't understand why do I have to send pictures instead the video itself. I've tried to change the Topic 'messageType' from 'sensor_msgs/CompressedImage' to 'sensor_msgs/Image', but I don't know what do I have to put in the ROSLIB.Message field...

2016-06-18 00:04:41 -0500 commented answer Hello guys. I have a scenario in which i have to control (basically send messages to) a master node from the internet

Thanks man! My router had a problem, but now it's solved. Just a simple port forwarding did the trick.

2016-05-17 18:35:53 -0500 commented answer Hello guys. I have a scenario in which i have to control (basically send messages to) a master node from the internet

Hello, nishthapa! I have this same issue... How did you made the connection between the 2 nodes? Can you share your code, or part of it? If you prefer, we can talk by e-mail, or facebook chat or whatever... Thanks!

2016-05-17 16:56:21 -0500 received badge  Supporter (source)