Comments (3)
== Server side ==
> roslaunch rosbridge_server rosbridge_websocket.launch --screen
== Client side ==
// Connecting to ROS
// -----------------
var ros = new ROSLIB.Ros();
// If there is an error on the backend, an 'error' emit will be emitted.
ros.on('error', function(error) {
console.log(error);
});
// Find out exactly when we made a connection.
ros.on('connection', function() {
console.log('Connection made!');
ros.getParams(function(params) {
console.log(params);
});
// First, we create a Param object with the name of the param.
var maxVelX = new ROSLIB.Param({
ros : ros,
name : 'max_vel_y'
});
//Then we set the value of the param, which is sent to the ROS Parameter Server.
maxVelX.set(0.8);
});
// Create a connection to the rosbridge WebSocket server.
ros.connect('ws://localhost:9090');
from rosbridge_suite.
It seems like rospy cannot handle simultaneous get/set param. I have seen similar behavior while investigating this problem.
http://answers.ros.org/question/149531/unable-to-load-the-manifest-for-package/
from rosbridge_suite.
I'm still getting this error with v0.6.7
. The first call it will throw the stack trace below, the second time it will work fine
$ node index --port $(rosparam get /rosbridge_websocket/port)
index.js
var ROS = require("roslibjs");
var RSVP = require("rsvp");
var argv = require("optimist").argv;
var ros = new ROS.Ros({
url: "ws://localhost:" + argv.port
});
function getParam(name) {
var $p = RSVP.defer();
ros.Param({
name: name
}).get($p.resolve);
return $p.promise;
}
RSVP.all([
getParam("/kf/pose/fusion"),
getParam("/kf/pose/mru"),
getParam("/kf/pose/gps"),
getParam("/kf/pose/sonar"),
getParam("/kf/pose/gps_precision")
]).then(function(params) {
// ....
});
Trace
[INFO] [WallTime: 1415130910.310431] Client connected. 1 clients total.
[ERROR] [WallTime: 1415130910.316223] [Client 0] [id: call_service:/rosapi/get_param:3] call_service InvalidPackageException: Unable to load the manifest for package rosapi. Caused by: rosapi
[ERROR] [WallTime: 1415130910.317899] [Client 0] [id: call_service:/rosapi/get_param:4] call_service InvalidPackageException: Unable to load the manifest for package rosapi. Caused by: rosapi
[ERROR] [WallTime: 1415130910.318575] [Client 0] [id: call_service:/rosapi/get_param:2] call_service InvalidPackageException: Unable to load the manifest for package rosapi. Caused by: rosapi
[ERROR] [WallTime: 1415130910.319533] [Client 0] [id: call_service:/rosapi/get_param:5] call_service InvalidPackageException: Unable to load the manifest for package rosapi. Caused by: rosapi
It will work fine if I limit it to one param get at a time
from rosbridge_suite.
Related Issues (20)
- TypeError: 'type' object is not subscriptable when launching rosbridge_websocket HOT 2
- Huge delay between server and client
- RosbridgeProtocol instance clean-up hangs when client disconnects under specific conditions. HOT 3
- services_glob allows all /rosapi services
- Cut a new release? HOT 3
- Service containing bounded array message HOT 1
- when send action goal , gets an error and tried to find action interface in the msg packages HOT 3
- address doesn't seem to have an effect in the websocket bridge
- Incompatible subscriber QoS when creating a subscription after a publisher HOT 3
- Asynchronous ROS2 Action Cancellation HOT 5
- 'float' object has no attribute 'get_fields_and_field_types' HOT 3
- Issues "catkin_making" rosbridge_suite in gentoo
- rosapi tries to parse `IDL` files as `msg` files and errors HOT 4
- OSError: [WinError 193] %1 is not a valid Win32 application
- NaNs not handled correctly when in an array HOT 1
- Use pydantic instead of basic_type_check HOT 7
- cancel_action_goal results in action_result with no status
- Not working on Windows 11 with Foxy HOT 1
- Compilation give unknown CMake command "add_launch_test". HOT 1
- get_parameter_value not present in Jazzy for rosapi_node HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosbridge_suite.