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

ros2model fails to run on Humble #1

Open
LukaJuricic opened this issue Apr 30, 2024 · 0 comments
Open

ros2model fails to run on Humble #1

LukaJuricic opened this issue Apr 30, 2024 · 0 comments

Comments

@LukaJuricic
Copy link

LukaJuricic commented Apr 30, 2024

Describe the bug
ros2model fails to run on Humble due to using legacy ROS 1 script rosversion

** Step and tutorial**
Tutorial link: https://ipa320.github.io/RosTooling.github.io/docu/ros2model.html
Step: ros2 model node -o turtlesim/nodes

Screenshots

~/eclipse-workspace/ros2/ws$ ros2 model node -o turtlesim/nodes
parse: node_name=get_/turtlesim1/turtlesim_info
topic name: /turtlesim1/turtle1/color_sensor

topic name again: /turtle1/color_sensor

get interface verbose: 
 namespace='/turtlesim1' name='turtle1/color_sensor' qos=QualityOfService(history='UNKNOWN', reliability='RELIABLE', durability='VOLATILE', lifespan=None, deadline=9223372036854775807, liveliness='AUTOMATIC', liveliness_lease_duration=9223372036854775807) type='turtlesim/msg/Color' full_name='/turtlesim1/turtle1/color_sensor'
topic name: /turtlesim1/turtle1/pose

topic name again: /turtle1/pose

get interface verbose: 
 namespace='/turtlesim1' name='turtle1/pose' qos=QualityOfService(history='UNKNOWN', reliability='RELIABLE', durability='VOLATILE', lifespan=None, deadline=9223372036854775807, liveliness='AUTOMATIC', liveliness_lease_duration=9223372036854775807) type='turtlesim/msg/Pose' full_name='/turtlesim1/turtle1/pose'
/parameter_events
/turtlesim1/turtle1/cmd_vel
topic name again: /turtle1/cmd_vel

get interface verbose: 
 namespace='/turtlesim1' name='turtle1/cmd_vel' qos=QualityOfService(history='UNKNOWN', reliability='RELIABLE', durability='VOLATILE', lifespan=None, deadline=9223372036854775807, liveliness='AUTOMATIC', liveliness_lease_duration=9223372036854775807) type='geometry_msgs/msg/Twist' full_name='/turtlesim1/turtle1/cmd_vel'
parse_interface: interface_name: clear
parse_interface: interface_name: kill
parse_interface: interface_name: reset
parse_interface: interface_name: spawn
parse_interface: interface_name: turtle1/set_pen
parse_interface: interface_name: turtle1/teleport_absolute
parse_interface: interface_name: turtle1/teleport_relative
parse_interface: interface_name: turtle1/rotate_absolute
Traceback (most recent call last):
  File "/opt/ros/humble/bin/ros2", line 33, in <module>
    sys.exit(load_entry_point('ros2cli==0.18.9', 'console_scripts', 'ros2')())
  File "/opt/ros/humble/lib/python3.10/site-packages/ros2cli/cli.py", line 91, in main
    rc = extension.main(parser=parser, args=args)
  File "/home/lukajuricic/eclipse-workspace/ros2/ws/install/ros2model/lib/python3.10/site-packages/ros2model/command/model.py", line 41, in main
    return extension.main(args=args)
  File "/home/lukajuricic/eclipse-workspace/ros2/ws/install/ros2model/lib/python3.10/site-packages/ros2model/verb/runtime_node.py", line 58, in main
    node_instance = RuntimeParser.parse(
  File "/home/lukajuricic/eclipse-workspace/ros2/ws/install/ros2model/lib/python3.10/site-packages/ros2model/api/runtime_parser/rosmodel_runtime_parser.py", line 353, in parse
    parsed_node.get_parameters(node)
  File "/home/lukajuricic/eclipse-workspace/ros2/ws/install/ros2model/lib/python3.10/site-packages/ros2model/api/runtime_parser/rosmodel_runtime_parser.py", line 257, in get_parameters
    new_proc = subprocess.Popen(["rosversion", "-d"], stdout=subprocess.PIPE)
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'rosversion'

Desktop (please complete the following information):

  • OS: Ubuntu Jammy
  • Eclipse version:
  • ROS 2 distro: Humble

Additional context
Side note: pydantic dependency version must be >= 2.0.3, see https://stackoverflow.com/questions/77172420/importerror-cannot-import-name-field-validator-from-pydantic

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