Closed rr-tom-noble closed 2 years ago
<include ns="$(arg robot_name)" file="$(find motoman_driver)/launch/robot_interface_streaming_yrc1000.launch"> <arg name="robot_ip" value="localhost"/> </include>
I would advise against loading robot_interface_streaming_yrc1000.launch
directly.
As explained here, you'll be responsible for making sure all the required parameters are present and in the right namespaces.
Using a robot support package makes that much easier.
This won't solve the connection problem, but it will solve all the other ("unable to find ..") errors, and will make the various nodes in motoman_driver
much happier.
Edit: this might also be sub-optimal:
while not rospy.is_shutdown():
pass
this is a very tight while-loop, which probably occupies a single core by itself.
I'd recommend using time.sleep(..)
, or some other similar approach.
Also: why are you using rospy
?
<include ns="$(arg robot_name)" file="$(find motoman_driver)/launch/robot_interface_streaming_yrc1000.launch"> <arg name="robot_ip" value="localhost"/> </include>
I would advise against loading
robot_interface_streaming_yrc1000.launch
directly.As explained here, you'll be responsible for making sure all the required parameters are present and in the right namespaces.
Using a robot support package makes that much easier.
This won't solve the connection problem, but it will solve all the other ("unable to find ..") errors, and will make the various nodes in
motoman_driver
much happier.Edit: this might also be sub-optimal:
while not rospy.is_shutdown(): pass
this is a very tight while-loop, which probably occupies a single core by itself.
I'd recommend using
time.sleep(..)
, or some other similar approach.Also: why are you using
rospy
?
Thanks, I'll have a read over that tutorial. Realise that the loop isn't the best! I'll add a sleep. I tried using m.start()
without the loop and the node immediately exited (unsure if that's expected behaviour though), so I'm using rospy and the loop to tie the lifetime of the server to the rest of my nodes.
Just realised that the sim servers are launched as daemons, so I suppose it's fine that the node exits after starting? The servers should still be running?
I usually run the sim script in interactive mode to keep everything alive: python -i sim.py
I'm using rospy and the loop to tie the lifetime of the server to the rest of my nodes.
for ros tests that could be a way to approach setup/teardown.
But it doesn't really match reality (if that's a concern): MotoROS obviously doesn't shut down when motoman_driver
disconnects/exits.
Were you able to connect, @rr-tom-noble?
I had some success! It looked like the issue was caused by motoman launching before the motoros server. Launching the server separately fixed the issue. I was getting some other errors on startup (can't remember the exact messages and I'm being pulled away by other work at the moment), so I'll close this issue for now and raise another when I have some time to pick this back up
I'm trying to use
MotoSim
with motoman via ROS to get a feel for what it's capable of currently. I've created a small node to launch the sim:and am launching motoman as follows:
However, I get the following errors on startup:
I believe some of these errors may be due to me still having a fake MoveIt "controller" set up, however, I was expecting motoman would still be able to connect to the server (the ports and IP look correct). Any help would be much appreciated.