This is an error report.
Screenshot of the error
Error details
function.py wont work. I only used copy/paste from notebook.
This is an error report.
Screenshot of the error
Error details
function.py wont work. I only used copy/paste from notebook.
Hi @timottesen
Code does not just work because you copy/pasted it.
When errors occur, try to find out what the error message means. For instance, based on Exec format error
mentioned in the error message, does function.py
have the execute permission?
Check and add x
permission if missing: chmod +x function.py
.
If that’s not the problem, paste the first 10 lines (from the top) of function.py
here. Perhaps, the “shebang” line has some errors.
#!/usr/bin/env python3
import rclpy
import time
from rclpy.node import Node
class RobotStatus(Node):
def init(self):
super().init(‘robot_status’)
self.time_robot_on = 0.0
I got it now. It happened because I missunderstood the task and created my own function.py,
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.