[ros-users] [Discourse.ros.org] [Next Generation ROS] Cannot…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Arunava Nag via ros-users
Dato:  
Til: ros-users
Emne: [ros-users] [Discourse.ros.org] [Next Generation ROS] Cannot run executable and lib using ros2 run after building using ament


I am using Ubuntu 16.04 Beta 2.
This is my simple package: https://github.com/arunavanag591/test_ros2

When I try this
`ros2 topic pub /test_topic std_msgs/String "hello"`

It throws me this:

    Traceback (most recent call last):
      File "/home/artc/ros2_ws/install/bin/ros2", line 9, in <module>
        load_entry_point('ros2cli==0.0.0', 'console_scripts', 'ros2')()
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2cli/cli.py", line 64, in main
        rc = extension.main(parser=parser, args=args)
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2topic/command/topic.py", line 38, in main
        return extension.main(args=args)
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2topic/verb/pub.py", line 43, in main
        return main(args)
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2topic/verb/pub.py", line 47, in main
        return publisher(args.message_type, args.topic_name, args.values)
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2topic/verb/pub.py", line 78, in publisher
        set_msg_fields(msg, values_dictionary)
      File "/home/artc/ros2_ws/install/lib/python3.5/site-packages/ros2topic/verb/pub.py", line 92, in set_msg_fields
        for field_name, field_value in values.items():
    AttributeError: 'str' object has no attribute 'items'






---
[Visit Topic](https://discourse.ros.org/t/cannot-run-executable-and-lib-using-ros2-run-after-building-using-ament/2640/6) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>