You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on a pick and place wrapper for MoveIt, I noticed that my messages were not published. At first I thought that there was a problem with my code or MoveIt, but I created a simple node and still cannot publish a message. My (simple) node is the following:
#!/usr/bin/env julia
using RobotOS
@rosimport geometry_msgs.msg: PoseStamped
rostypegen()
using geometry_msgs.msg
init_node("julia_test")
t = Publisher("/test_topic", PoseStamped, queue_size = 1)
sleep(5)
ps = PoseStamped()
ps.header.stamp = RobotOS.now()
i = 1
while i < 10
publish(t, ps)
println("Published"*string(i))
sleep(1)
i += 1
end
Any thoughts?
The text was updated successfully, but these errors were encountered:
I think your problem is you are calling Julia's sleep which is not allowing rospy to do the message publishing. Try using rossleep instead or calling sleep with a Duration instance.
While working on a pick and place wrapper for MoveIt, I noticed that my messages were not published. At first I thought that there was a problem with my code or MoveIt, but I created a simple node and still cannot publish a message. My (simple) node is the following:
Any thoughts?
The text was updated successfully, but these errors were encountered: