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

Some message types not discovered in Bazel build #6

Open
srmainwaring opened this issue Jan 10, 2022 · 0 comments
Open

Some message types not discovered in Bazel build #6

srmainwaring opened this issue Jan 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@srmainwaring
Copy link
Owner

srmainwaring commented Jan 10, 2022

Some message types are not discovered when published using the Bazel build. This is not particular to Python, but also occurs for the C++ examples (so it does not appear to be a binding issue).

How to replicate

From terminal 1 run the C++ rover_publisher:

$ ./bazel-bin/python_ignition/rover_publisher
Publishing pose on topic [/pose], twist on topic [/twist]
Publishing pose on topic [/pose], twist on topic [/twist]
...

From terminal 2 run the C++ ign_topic_echo subscribing to /pose:

$ /bazel-bin/python_ignition/ign_topic_echo -t /pose 
header {
  stamp {
    sec: 4
    nsec: 513947250
  }
}
name: "base_link"
id: 9
position {
  x: 4.6053049700144255
  y: 1.9470917115432527
}
orientation {
  z: 0.19866933079506122
  w: 0.98006657784124163
}
...

From terminal 2 run the C++ ign_topic_echo subscribing to /twist:

$ /bazel-bin/python_ignition/ign_topic_echo -t /twist

In the second case no messages are displayed for the type ignition.msgs.Twist


Using the Python tools we can verify that both messages are published:

$ ./bazel-bin/python_ignition/python/ign_topic_list  
/pose
/twist
$ ./bazel-bin/python_ignition/python/ign_topic_info -t /pose
Publishers [Address, Message Type]:
  tcp://192.168.1.31:62260, ignition.msgs.Pose
$ ./bazel-bin/python_ignition/python/ign_topic_info -t /twist
Publishers [Address, Message Type]:
  tcp://192.168.1.31:62260, ignition.msgs.Twist

The issue is apparent with other messages types as can be seen by using the multi-message publisher:

From terminal 1:

$ ./bazel-bin/python_ignition/python/pub_all_msg_types

From terminal 2:

$ ./bazel-bin/python_ignition/python/ign_topic_list
/cmd_vel
/double
/double_v
/float
/float_v
/header
/pid
/pose
/publish
/quat
/subscribe
/time
/topic_info
/twist
/vector3d
/wrench

and then checking each topic in turn:

# working
$ ./bazel-bin/python_ignition/ign_topic_echo -t /double
header {
  stamp {
    sec: 15
    nsec: 21
  }
}
data: 10
...
# not working
$ ./bazel-bin/python_ignition/ign_topic_echo -t /double_v

The issue does not occur when running the examples built using the CMake build.

@srmainwaring srmainwaring added the bug Something isn't working label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant