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

Il_Voza's profile - activity

2017-03-17 21:45:50 -0500 received badge  Good Question (source)
2015-07-18 06:01:59 -0500 received badge  Nice Question (source)
2015-05-19 01:16:41 -0500 received badge  Student (source)
2014-10-23 22:40:35 -0500 received badge  Famous Question (source)
2014-09-10 22:51:14 -0500 received badge  Popular Question (source)
2014-09-10 22:51:14 -0500 received badge  Notable Question (source)
2014-09-10 22:51:14 -0500 received badge  Famous Question (source)
2014-07-28 03:49:04 -0500 received badge  Notable Question (source)
2014-07-28 03:49:04 -0500 received badge  Popular Question (source)
2014-05-05 05:30:22 -0500 received badge  Editor (source)
2014-05-05 05:11:15 -0500 asked a question Migrate from rosbridge 1.0 to 2.0

Hello guys, I have a project where I used rosbridge 1.0 and (so) ROS Groovy. I have to move my project to Hydro, so I need of rosbridge 2.0. How can I edit this js code to migrate to rosbridge 2.0?

var ros = ros || {};

var Connection = function(url) {
  this.handlers = new Array();

  if (typeof WebSocket == 'undefined') {
    WebSocket = MozWebSocket;
  }
  this.socket = new WebSocket(url);
  this.onmessage = null;
  var ths = this;
  this.socket.onmessage = function(e) {
    if(ths.onmessage) {
      try {
        ths.onmessage(e);
      } catch(err) {
        ros_debug(err);
      }
    }

    var call = ''; 
    try {
      eval('call = ' + e.data);
    } catch(err) {
      return;
    }

    for (var i in ths.handlers[call.receiver]) {
      var handler = ths.handlers[call.receiver][i]
      handler(call.msg);
    }
  }

  this.magicServices = new Array('/rosbridge/topics','/rosbridge/services','/rosbridge/typeStringFromTopic','/rosbridge/typeStringFromService','/rosbridge/msgClassFromTypeString','/rosbridge/reqClassFromTypeString','/rosbridge/rspClassFromTypeString','/rosbridge/classFromTopic','/rosbridge/classesFromService');

}

Connection.prototype.callService = function(service, json, callback) {
  this.handlers[service] = new Array(callback);
  var call = '{"receiver":"' + service + '"';
  call += ',"msg":' + json + '}';
  this.socket.send(call);
}

Connection.prototype.publish = function(topic, typeStr, json) {
  typeStr.replace(/^\//,'');
  var call = '{"receiver":"' + topic + '"';
  call += ',"msg":' + json;
  call += ',"type":"' + typeStr + '"}';
  this.socket.send(call);
}

Connection.prototype.addHandler = function(topic, func) {
  if (!(topic in this.handlers)) {
    this.handlers[topic] = new Array();
  }
  this.handlers[topic].push(func);
}

Connection.prototype.setOnError = function(func) {
  this.socket.onerror = func;
}

Connection.prototype.setOnClose = function(func) {
  this.socket.onclose = func;
}

Connection.prototype.setOnOpen = function(func) {
  this.socket.onopen = func;
}

Connection.prototype.setOnMessage = function(func) {
  this.onmessage = func;
}

ros.Connection = Connection;

In fact, when I type rosrun rosbridge_server rosbridge_websocket, it gives me this error

[ERROR] [WallTime: 1399303416.415417] [Client 0] Received a rosbridge v1.0 message.  Please refer to rosbridge.org for the correct format of rosbridge v2.0 messages.  Original message was: {"receiver":"/rosjs/services","msg":[]}
[ERROR] [WallTime: 1399303416.415678] [Client 0] Received a rosbridge v1.0 message.  Please refer to rosbridge.org for the correct format of rosbridge v2.0 messages.  Original message was: {"receiver":"/rosjs/topics","msg":[]}

That rosjs appears in this code: h t t p://pastebin.com/eSYAEaNd (I haven`t enough karma for pub links) (I put here because is long)

Thanks guys

2014-05-02 21:37:06 -0500 received badge  Famous Question (source)
2014-04-21 19:37:15 -0500 received badge  Notable Question (source)
2014-04-17 08:10:56 -0500 received badge  Popular Question (source)
2014-04-17 02:33:09 -0500 asked a question ROS-Gazebo Failed to load joint_state_controller

Hello guys,

I'am following this tutorial about ROS Integration on Gazebo 1.9 ( http://gazebosim.org/wiki/Tutorials/1... ).

My issue is: As example I consider RRBot, when I type these commands:

roslaunch rrbot_gazebo rrbot_world.launch

to start simulation, and

roslaunch rrbot_control rrbot_control.launch

to load controllers, it gives me these errors:

[INFO] [WallTime: 1397731938.843439] [11.566000] Loading controller: joint_state_controller
[ERROR] [WallTime: 1397731939.851478] [12.570000] Failed to load joint_state_controller
[INFO] [WallTime: 1397731939.852413] [12.571000] Loading controller: joint1_position_controller
[ERROR] [WallTime: 1397731940.860462] [13.576000] Failed to load joint1_position_controller
[INFO] [WallTime: 1397731940.861270] [13.576000] Loading controller: joint2_position_controller
[ERROR] [WallTime: 1397731941.869383] [14.581000] Failed to load joint2_position_controller
[INFO] [WallTime: 1397731941.870228] [14.581000] Controller Spawner: Loaded controllers: 
[INFO] [WallTime: 1397731941.876315] [14.588000] Started controllers:

Then, if I type: rosservice call controller_manager/list_controller_types it gives me this error:

ERROR: Service [/controller_manager/list_controller_types] is not available.

How can I resolve? Thanks

2014-04-09 11:47:28 -0500 answered a question Gazebo - Unable to find texture

Ehm I resolved... I didn't see that Sketchup, when I exported .dae file, I didn't see that Sketchup makes also a folder with textures... Pardon xD

2014-04-09 09:43:21 -0500 asked a question Gazebo - Unable to find texture

Hello guys, I made my 3D model by Sketchup and I exported collada file (final.dae). Today I tried to import this .dae file to gazebo (by my_mesh.world file) and when gazebo starts, on shell it gives me this error a lot of times:

Error [Material.cc:93] Unable to find texture [final/texturename.jpg] in path[/home/myusername/Desktop/gazebo]

My question is: every time I make a .dae file and I want to import on gazebo (for example), always I have to paste into directory of my gazebo ALL .jpg file of texture??? Is not .dae file sufficient? How can I resolve?

Thnx