- 
                Notifications
    
You must be signed in to change notification settings  - Fork 25
 
Description
We want to control a tm5-900 at 10 Hz.
When a new command comes in,
the robot should immediately follow the latest command,
forgetting about past commands.
To realize the above concept,
I first experimented with python scripts in a gazebo environment using the following command.
// command
roslaunch tm_gazebo tm5-900_gazebo.launch
We have so far confirmed the desired 10 Hz operation with the following script.
// python script
from trajectory_msgs.msg import JointTrajectory
pub = rospy.Publisher('arm_controller/command', JointTrajectory, queue_size=10)
while True:
... // determination of arrival
... // get pose_current and pose_target, create pose_next, compute IK
pub.publish(msg_jointtrajectory)  // at 10 Hz
Next, we want to do the same thing as above with an real robot.
We verified the connection with the robot using the following command.
// command (each terminal)
roscore
rosrun tm_driver tm_driver my_robot_ip
If we check the rostopic list in this situation,
there is no 'arm_controller/command' topic,
and it is not possible to execute the same as in the gazebo environment.
Is there an alternative approach or use of 'arm_controller/command'
in a real robot environment?