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

Not able to run ros2 node

asked 2019-06-23 08:12:23 -0500

Deepan gravatar image

I installed ros2(crystal) in the same machine having ros(melodic). I changed my .bashrc script also as shown below

source /opt/ros/crystal/setup.bash
source /home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/setup.bash

But when I try to start a ros2 node(ros2 run demo_nodes_cpp talker), I am getting the below error.

Failed to load entry point 'launch': No module named 'rclpy._rclpy'
Failed to load entry point 'start': No module named 'rclpy._rclpy'
Failed to load entry point 'status': No module named 'rclpy._rclpy'
Failed to load entry point 'stop': No module named 'rclpy._rclpy'
Failed to load entry point 'get': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'nodes': No module named 'rclpy._rclpy'
Failed to load entry point 'set': No module named 'rclpy._rclpy'
Failed to load entry point 'info': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'delete': No module named 'rclpy._rclpy'
Failed to load entry point 'get': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'set': No module named 'rclpy._rclpy'
Failed to load entry point 'generate_policy': No module named 'rclpy._rclpy'
Failed to load entry point 'call': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'delay': No module named 'rclpy._rclpy'
Failed to load entry point 'echo': No module named 'rclpy._rclpy'
Failed to load entry point 'hz': No module named 'rclpy._rclpy'
Failed to load entry point 'info': No module named 'rclpy._rclpy'
Failed to load entry point 'list': No module named 'rclpy._rclpy'
Failed to load entry point 'pub': No module named 'rclpy._rclpy'
Traceback (most recent call last):
  File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/bin/ros2", line 11, in <module>
    load_entry_point('ros2cli==0.6.3', 'console_scripts', 'ros2')()
  File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2cli/cli.py", line 69, in main
    rc = extension.main(parser=parser, args=args)
  File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2run/command/run.py", line 72, in main
    return run_executable(path=path, argv=args.argv, prefix=prefix)
  File "/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/python3.6/site-packages/ros2run/api/__init__.py", line 61, in run_executable
    process = subprocess.Popen(cmd)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/lib/demo_nodes_cpp/talker'

Does anyone faced the same issue? If so, please help me with this. Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-06-23 08:33:23 -0500

gvdhoorn gravatar image

updated 2019-06-23 09:30:31 -0500

ros2-crystal-20190408-linux-bionic-arm64

and

OSError: [Errno 8] Exec format error

is your system an ARM8 system in 64bit mode? What is the output of uname -a?

Also:

source /opt/ros/crystal/setup.bash
source /home/deepan/ros2_install/ros2-crystal-20190408-linux-bionic-arm64/ros2-linux/setup.bash

why are you mixing Debian packages with the Linux archives?


Edit:

My system is not arm.

obvious, but you should download the correct binaries for your architecture.

why are you mixing Debian packages with the Linux archives?

I just want to check this way. Anyway Iam using Debian Package only.

Can you please suggest me which one is better? either using debian package or linux archives?

If you're just starting, I'd install the Debian packages. They're automatically updated for you and your installation is managed by the system's package manager.

edit flag offensive delete link more

Comments

ya..you are right.. I downloaded the wrong package. My system is not arm.

why are you mixing Debian packages with the Linux archives? I just want to check this way. Anyway Iam using Debian Package only.

Can you please suggest me which one is better? either using debian package or linux archives? Thank you

Deepan gravatar image Deepan  ( 2019-06-23 09:07:31 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2019-06-23 08:12:23 -0500

Seen: 1,899 times

Last updated: Jun 23 '19