Error when launching mpa_to_ros2
-
Hi,
I'm on the starling2 with sdk-1.3.
I tried to follow the tutorial to install mpa_to_ros2 but at the end I can't run the mpa_to_ros2 node.First I installed ros2 on the voxl2, then I built the mpa_to_ros2 package on qrb5165 emulator
(I did it with master branch and dev branch)
And finally run ./deploy_to_voxl.sh then when running
ros2 launch voxl_mpa_to_ros2 voxl_mpa_to_ros2.launch
I've got this error message :[INFO] [launch]: All log files can be found below /opt/ros/foxy/log/2024-06-24-16-50-13-486942-m0054-9328 [INFO] [launch]: Default logging verbosity is set to INFO Task exception was never retrieved future: <Task finished coro=<LaunchService._process_one_event() done, defined at /opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py:226> exception=InvalidLaunchFileError('',)> Traceback (most recent call last): File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py", line 228, in _process_one_event await self.__process_event(next_event) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_service.py", line 248, in __process_event visit_all_entities_and_collect_futures(entity, self.__context)) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 45, in visit_all_entities_and_collect_futures futures_to_return += visit_all_entities_and_collect_futures(sub_entity, context) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/utilities/visit_all_entities_and_collect_futures_impl.py", line 38, in visit_all_entities_and_collect_futures sub_entities = entity.visit(context) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/action.py", line 108, in visit return self.execute(context) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/actions/include_launch_description.py", line 130, in execute launch_description = self.__launch_description_source.get_launch_description(context) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_source.py", line 84, in get_launch_description self._get_launch_description(self.__expanded_location) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_sources/any_launch_description_source.py", line 53, in _get_launch_description return get_launch_description_from_any_launch_file(location) File "/opt/ros/foxy/lib/python3.6/site-packages/launch/launch_description_sources/any_launch_file_utilities.py", line 56, in get_launch_description_from_any_launch_file raise InvalidLaunchFileError(extension, likely_errors=exceptions) launch.invalid_launch_file_error.InvalidLaunchFileError: The launch file may have a syntax error, or its format is unknownI also tried installing mpa_to_ros2 by running apt-get install voxl-mpa-to-ros2
But in the end the result was the same.
Am I missing something ?
Which tutorial am i suppose to follow ?
Julien
-
It is not a launch but a ros2 node itself - should just be
ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.Zach
-
It is not a launch but a ros2 node itself - should just be
ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.Zach
@Zachary-Lowell-0 said in Error when launching mpa_to_ros2:
ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2
I've got
"No executable found"
when doing this commandJulien
-
It is not a launch but a ros2 node itself - should just be
ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2, no launch script.Zach
@Zachary-Lowell-0 well it work now!
I found these lines on another thread of the forum:sudo apt-get install voxl-ros2-foxy sudo apt-get install voxl-mpa-to-ros2 voxl-configure-mpa-to-ros2 source /opt/ros/foxy/mpa_to_ros2/install/setup.bash export ROS_HOME=/opt/foxy ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_nodeAnd everything worked first time ! So please put these line directly on the documentation cause I lost so much time with this install !
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login