Comments (3)
So you are getting to the constructor of the class:
[component_container-1] [INFO] [phidgets_spatial]: Starting Phidgets Spatial
But you are not getting to where it tries to connect to the device. The next line you should see is something like:
[component_container-1] [INFO] [phidgets_spatial]: Connecting to Phidgets Spatial serial -1, hub port 0 ...
The only things that happen between those two prints are getting and checking of parameters. So I'd guess that one of your parameters is either declared as an invalid type, or with an invalid value. What does your parameter configuration file look like?
from phidgets_drivers.
Hi @clalancette ,
Here is my params.yaml and launch file.
phidgets_spatial:
ros__parameters:
hub_port: 0
frame_id: "imu_link"
linear_acceleration_stdev: 0.002744
angular_velocity_stdev: 0.087266463
magnetic_field_stdev: 0.0000011
time_resynchronization_interval_ms: 5000
data_interval_ms: 8
callback_delta_epsilon_ms: 1
publish_rate: 100
# Copyright 2019 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Launch a Phidgets spatial in a component container."""
import launch
from launch_ros.actions import ComposableNodeContainer
from launch_ros.descriptions import ComposableNode
"""Load Configuration File"""
param_file = os.getcwd() + '/params.yaml'
node_remaps=[]
if os.path.isfile(param_file):
node_remaps += [('__params', param_file)]
launch_print("Using parameters file: " + param_file)
else:
launch_print("Parameters file not found: " + param_file)
def generate_launch_description():
"""Generate launch description with multiple components."""
container = ComposableNodeContainer(
node_name='phidget_container',
node_namespace='',
package='rclcpp_components',
node_executable='component_container',
composable_node_descriptions=[
ComposableNode(
package='phidgets_spatial',
node_plugin='phidgets::SpatialRosI',
node_name='phidgets_spatial'),
],
output='both',
)
return launch.LaunchDescription([container])
from phidgets_drivers.
publish_rate: 100
That's your problem. Currently ROS 2 doesn't accept integers for double fields, and the publish rate is a double. Change that to 100.0
, and it will most likely work.
I'm going to close this out, but feel free to reopen if this doesn't fix your problem.
from phidgets_drivers.
Related Issues (20)
- libphidget22: Release into ROS2 rolling broken HOT 2
- Allow configuring encoder IOMode HOT 2
- phidgets_high_speed_encoder regression: duplicated joint state angles in all axis
- Should thermocouple package use sensor_msgs/Temperature instead of float64? HOT 8
- Fix gcc warnings on Ubuntu 22.04 HOT 1
- Port #127 to ROS2 (Add support for VINT networkhub) HOT 5
- Port #134 to ROS2 (sensor_msgs/Temperature and multi-channel readers)
- Port #137 to ROS2 (Support configuring encoder data interval and IO Mode)
- phidgets_high_speed_encoder: Failed to open device: Timed Out HOT 1
- PhidgetSpatial Precision IMU stops data output after first run on Jetson Orin HOT 2
- Feature Request: Flag for changing NED to ENU frame HOT 3
- Humble Branch compile issues HOT 3
- Port #153 to ROS2 (Add support for onboard orientation estimation and other new PhidgetSpatial features of MOT0109 and onwards) HOT 1
- MOT0110_0: Spatial: Failed to open device: Timed Out HOT 13
- Spatial: Failed to set algorithm magnetometer gain: Operation Not Supported HOT 4
- API of MOT0109 and MOT0110 is different HOT 2
- Drivers issues with older version of Phidgets HOT 3
- PhidgetManager_setOnErrorHandler symbol not found HOT 3
- Location affect to the orientation
- Port #173 to ROS2 (Add support for Phidgets Humidity sensors)
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 phidgets_drivers.