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

Error running ros2 commands and programs in Pepper #20

Open
lbajo opened this issue Nov 5, 2018 · 1 comment
Open

Error running ros2 commands and programs in Pepper #20

lbajo opened this issue Nov 5, 2018 · 1 comment

Comments

@lbajo
Copy link

lbajo commented Nov 5, 2018

Hello @esteve ,
I was working in this repository and I did some changes from your original repository.
All my changes are in this repository.
Finally, all the scripts compiled but when I try to run some tests in the Pepper robot I have the next errors:

Pepper [0] ~ $ ros2 topic pub /chatter std_msgs/String "data: Hello world"
[RTPS_QOS_CHECK Error] WRITERQOS: LeaseDuration <= announcement period. -> Function checkQos
Failed to create publisher: create_publisher() could not create publisher, at /home/nao/pepper_ros2_ws/src/ros2/rmw_fastrtps/rmw_fastrtps_cpp/src/rmw_publisher.cpp:145, at /home/nao/pepper_ros2_ws/src/ros2/rcl/rcl/src/rcl/publisher.c:151

Pepper [err 1] ~ $ ros2 run demo_nodes_cpp talker
[RTPS_QOS_CHECK Error] WRITERQOS: LeaseDuration <= announcement period. -> Function checkQos
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
  what():  could not create publisher: create_publisher() could not create publisher, at /home/nao/pepper_ros2_ws/src/ros2/rmw_fastrtps/rmw_fastrtps_cpp/src/rmw_publisher.cpp:145, at /home/nao/pepper_ros2_ws/src/ros2/rcl/rcl/src/rcl/publisher.c:151

Pepper [err 250] ~ $ ros2 run demo_nodes_cpp listener
[RTPS_QOS_CHECK Error] WRITERQOS: LeaseDuration <= announcement period. -> Function checkQos
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
  what():  could not create publisher: create_publisher() could not create publisher, at /home/nao/pepper_ros2_ws/src/ros2/rmw_fastrtps/rmw_fastrtps_cpp/src/rmw_publisher.cpp:145, at /home/nao/pepper_ros2_ws/src/ros2/rcl/rcl/src/rcl/publisher.c:151

Pepper [err 250] ~ $ ros2 run demo_nodes_py talker  
[RTPS_QOS_CHECK Error] WRITERQOS: LeaseDuration <= announcement period. -> Function checkQos
Traceback (most recent call last):
  File "/home/nao/System/ros2_inst/demo_nodes_py/lib/demo_nodes_py/talker", line 11, in <module>
    load_entry_point('demo-nodes-py==0.4.0', 'console_scripts', 'talker')()
  File "/data/home/nao/System/ros2_inst/demo_nodes_py/lib/python3.6/site-packages/demo_nodes_py/topics/talker.py", line 46, in main
    node = Talker()
  File "/data/home/nao/System/ros2_inst/demo_nodes_py/lib/python3.6/site-packages/demo_nodes_py/topics/talker.py", line 28, in __init__
    self.pub = self.create_publisher(String, 'chatter')
  File "/home/nao/System/ros2_inst/rclpy/lib/python3.6/site-packages/rclpy/node.py", line 115, in create_publisher
    self.handle, msg_type, topic, qos_profile.get_c_qos_profile())
RuntimeError: Failed to create publisher: create_publisher() could not create publisher, at /home/nao/pepper_ros2_ws/src/ros2/rmw_fastrtps/rmw_fastrtps_cpp/src/rmw_publisher.cpp:145, at /home/nao/pepper_ros2_ws/src/ros2/rcl/rcl/src/rcl/publisher.c:151

Do you think that the problem are the different versions of the repositories? Are some repository version wrong? Is something related with the Fast-RTPS QoS? Any idea about what is happening?
Thanks!

@fmrico
Copy link
Contributor

fmrico commented Nov 5, 2018

Hi @lbajo

Maybe you could also make this question in ROS Answers. There is a tag ros2 and it seems to be a general question instead of a specific one related only to this project...

... or maybe not ;)

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

2 participants