Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem running ros2 service call /ColaMsg #453

Open
FL3UR-TOUW opened this issue Feb 28, 2025 · 0 comments
Open

problem running ros2 service call /ColaMsg #453

FL3UR-TOUW opened this issue Feb 28, 2025 · 0 comments

Comments

@FL3UR-TOUW
Copy link

Hello guys me again,

Windows 11
Ros2 humble
sick_scan_xd
python 3.8.3

i am trying to run this command: ros2 service call /ColaMsg sick_scan_xd/srv/ColaMsgSrv "{request: 'sEN LIDoutputstate 1'}"
while i am running this in an other cmd: ros2 launch sick_scan_xd sick_picoscan.launch.py hostname:=192.168.0.1 udp_receiver_ip:=192.168.0.15 (this works fine, it shows the IMU data of the sensor).

but the ColaMsgSrv throws up error's were i can't get rid off!

c:\sick_scan_ws>ros2 service call /ColaMsg sick_scan_xd/srv/ColaMsgSrv "{request: 'sEN LIDoutputstate 1'}"
Traceback (most recent call last):
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\rosidl_generator_py\import_type_support_impl.py", line 46, in import_type_support
return importlib.import_module(module_name, package=pkg_name)
File "C:\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sick_scan_xd.sick_scan_xd_s__rosidl_typesupport_c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\dev\ros2_humble\ros2-windows\Scripts\ros2-script.py", line 33, in
sys.exit(load_entry_point('ros2cli==0.18.11', 'console_scripts', 'ros2')())
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\ros2cli\cli.py", line 91, in main
rc = extension.main(parser=parser, args=args)
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\ros2service\command\service.py", line 41, in main
return extension.main(args=args)
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\ros2service\verb\call.py", line 58, in main
return requester(
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\ros2service\verb\call.py", line 86, in requester
cli = node.create_client(srv_module, service_name)
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\rclpy\node.py", line 1413, in create_client
check_is_valid_srv_type(srv_type)
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\rclpy\type_support.py", line 51, in check_is_valid_srv_type
check_for_type_support(srv_type)
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\rclpy\type_support.py", line 29, in check_for_type_support
msg_or_srv_type.class.import_type_support()
File "c:\sick_scan_ws\install\sick_scan_xd\Lib\site-packages\sick_scan_xd\srv_cola_msg_srv.py", line 259, in import_type_support
module = import_type_support('sick_scan_xd')
File "C:\dev\ros2_humble\ros2-windows\Lib\site-packages\rosidl_generator_py\import_type_support_impl.py", line 48, in import_type_support
raise UnsupportedTypeSupport(pkg_name)
rosidl_generator_py.import_type_support_impl.UnsupportedTypeSupport: Could not import 'rosidl_typesupport_c' for package 'sick_scan_xd'

does someone know what i can do about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant