ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to conrol Robotic arm?

asked 2021-04-23 15:31:04 -0500

Hardik Rathod gravatar image

updated 2021-04-24 15:26:39 -0500

jayess gravatar image

Hello,

I have to say, I have started learning ROS and I want to control Robotic manipulator which is Ned. The first one on this link: https://robots.ros.org/category/manip...

I was trying to create a node which publish a message on a topic. After listing all the topics, I was confused on which topic I should publish my message. There were tones of topics related to the same robot.

Any help in the direction of how should I go about this would be really appreciated.

Below is a list of topics.

/attached_collision_object
/client_count
/clock
/collision_object
/connected_clients
/execute_trajectory/cancel
/execute_trajectory/feedback
/execute_trajectory/goal
/execute_trajectory/result
/execute_trajectory/status
/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/set_link_state
/gazebo/set_model_state
/gazebo_camera/camera_info
/gazebo_camera/image_raw
/gazebo_camera/image_raw/compressed
/gazebo_camera/image_raw/compressed/parameter_descriptions
/gazebo_camera/image_raw/compressed/parameter_updates
/gazebo_camera/image_raw/compressedDepth
/gazebo_camera/image_raw/compressedDepth/parameter_descriptions
/gazebo_camera/image_raw/compressedDepth/parameter_updates
/gazebo_camera/image_raw/theora
/gazebo_camera/image_raw/theora/parameter_descriptions
/gazebo_camera/image_raw/theora/parameter_updates
/gazebo_camera/parameter_descriptions
/gazebo_camera/parameter_updates
/gazebo_ros_control/pid_gains/joint_1/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_1/parameter_updates
/gazebo_ros_control/pid_gains/joint_2/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_2/parameter_updates
/gazebo_ros_control/pid_gains/joint_3/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_3/parameter_updates
/gazebo_ros_control/pid_gains/joint_4/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_4/parameter_updates
/gazebo_ros_control/pid_gains/joint_5/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_5/parameter_updates
/gazebo_ros_control/pid_gains/joint_6/parameter_descriptions
/gazebo_ros_control/pid_gains/joint_6/parameter_updates
/gazebo_tool_controller/command
/gazebo_tool_controller/follow_joint_trajectory/cancel
/gazebo_tool_controller/follow_joint_trajectory/feedback
/gazebo_tool_controller/follow_joint_trajectory/goal
/gazebo_tool_controller/follow_joint_trajectory/result
/gazebo_tool_controller/follow_joint_trajectory/status
/gazebo_tool_controller/gains/joint_base_to_mors_1/parameter_descriptions
/gazebo_tool_controller/gains/joint_base_to_mors_1/parameter_updates
/gazebo_tool_controller/gains/joint_base_to_mors_2/parameter_descriptions
/gazebo_tool_controller/gains/joint_base_to_mors_2/parameter_updates
/gazebo_tool_controller/state
/joint_states
/move_group/cancel
/move_group/display_contacts
/move_group/display_planned_path
/move_group/feedback
/move_group/goal
/move_group/monitored_planning_scene
/move_group/ompl/parameter_descriptions
/move_group/ompl/parameter_updates
/move_group/plan_execution/parameter_descriptions
/move_group/plan_execution/parameter_updates
/move_group/planning_scene_monitor/parameter_descriptions
/move_group/planning_scene_monitor/parameter_updates
/move_group/result
/move_group/sense_for_plan/parameter_descriptions
/move_group/sense_for_plan/parameter_updates
/move_group/status
/move_group/trajectory_execution/parameter_descriptions
/move_group/trajectory_execution/parameter_updates
/niryo_robot/blockly/save_current_point
/niryo_robot/conveyor/feedback
/niryo_robot/jog_interface/is_enabled
/niryo_robot/learning_mode/state
/niryo_robot/max_velocity_scaling_factor
/niryo_robot/robot_state
/niryo_robot/rpi/is_button_pressed
/niryo_robot_blockly/break_point
/niryo_robot_blockly/highlight_block
/niryo_robot_commander/is_active
/niryo_robot_commander/robot_action/cancel
/niryo_robot_commander/robot_action/feedback
/niryo_robot_commander/robot_action/goal
/niryo_robot_commander/robot_action/result
/niryo_robot_commander/robot_action/status
/niryo_robot_follow_joint_trajectory_controller/command
/niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/cancel
/niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/feedback
/niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/goal
/niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/result
/niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/status
/niryo_robot_follow_joint_trajectory_controller/state
/niryo_robot_hardware/tools/current_id
/niryo_robot_hardware_interface/hardware_status
/niryo_robot_hardware_interface/software_version
/niryo_robot_matlab/command
/niryo_robot_matlab/result
/niryo_robot_programs_manager/program_is_running
/niryo_robot_programs_manager/program_list
/niryo_robot_rpi/digital_io_state
/niryo_robot_rpi/pause_state
/niryo_robot_rpi/ros_log_status
/niryo_robot_tools/action_server/cancel
/niryo_robot_tools/action_server/feedback
/niryo_robot_tools/action_server/goal
/niryo_robot_tools/action_server/result
/niryo_robot_tools/action_server/status
/niryo_robot_tools/current_id
/niryo_robot_vision/camera_intrinsics
/niryo_robot_vision/compressed_video_stream
/niryo_robot_vision/video_stream_is_active
/pickup/cancel
/pickup/feedback
/pickup/goal
/pickup/result
/pickup/status
/place/cancel
/place/feedback
/place/goal
/place/result
/place/status
/planning_scene
/planning_scene_world
/rosout
/rosout_agg
/tf
/tf2_web_republisher/cancel
/tf2_web_republisher/feedback
/tf2_web_republisher/goal
/tf2_web_republisher/result
/tf2_web_republisher/status
/tf_static
/trajectory_execution_event

Thank you.

edit retag flag offensive close merge delete

Comments

could you give us the list of topics ?

seif_seghiri gravatar image seif_seghiri  ( 2021-04-23 15:46:22 -0500 )edit

I need 5 points to attach file, so I have uploaded a file in my gdrive. Topics list

Thanks for your quick reply.

Hardik Rathod gravatar image Hardik Rathod  ( 2021-04-24 03:44:33 -0500 )edit
1

@Hardik Rathod: it's all text. Just copy-paste it into your question. Use the edit button/link to do that.

gvdhoorn gravatar image gvdhoorn  ( 2021-04-24 06:32:13 -0500 )edit

@gvdhoorn I did the update. Do you wanted it like that?

Hardik Rathod gravatar image Hardik Rathod  ( 2021-04-24 06:37:35 -0500 )edit

@Hardik Rathod Just an FYI, you can use the preformatted text (101010) button to format terminal text/code instead of using HTML elements

jayess gravatar image jayess  ( 2021-04-24 15:27:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-19 02:12:08 -0500

To control the Ned, you have 3 choices:

  • directly through the controller topic: (http://docs.ros.org/en/melodic/api/tr...)

    joint_trajectory_publisher = rospy.Publisher(/niryo_robot_follow_joint_trajeory_controller/command trajectory_msgs/JointTrajectory, JointTrajectory, queue_size=3)
    
    msg = JointTrajectory()
    msg.header.stamp = rospy.Time.now()
    msg.joint_names = ['joint_1', 'joint_2', 'joint_3', 'joint_4', 'joint_5', 'joint_6']
    
    waypoint = JointTrajectoryPoint()
    waypoint.positions = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
    waypoint.time_from_start = rospy.Duration(0.01)
    
    msg.points = [waypoint]
    
    joint_trajectory_publisher.publish(msg)
    
  • through the action server: , (in this case the rebot will use moveit to plan its trajectory). There is some use here: https://github.com/NiryoRobotics/ned_...

  • directly through the follow joint trajectory action server: /niryo_robot_follow_joint_trajectory_controller/follow_joint_trajectory/. Look at http://docs.ros.org/en/diamondback/ap...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-04-23 15:31:04 -0500

Seen: 138 times

Last updated: Apr 24 '21