Skip to content

update ar docking#28

Draft
AiriYokochi wants to merge 2 commits intodevelopfrom
feature/update_docking
Draft

update ar docking#28
AiriYokochi wants to merge 2 commits intodevelopfrom
feature/update_docking

Conversation

@AiriYokochi
Copy link
Copy Markdown
Contributor

@AiriYokochi AiriYokochi commented Nov 27, 2023

Summary

自動充電の改修を行いました

Test

  • gazebo環境で起動した
  • Cube_petitで起動した
cd cube_petit_ar_docking/
catkin bt
source ~/<workspace>/devel/setup.bash 
roslaunch cube_petit_ar_docking ar_docking.launch 

Comment on lines 3 to 4
# charging_station_pose: [-0.290, -0.029, 0.000, 0.000, 0.000, -0.040, 0.999]
# charging_station_pose: [-1.683, -0.028, 0.000, 0.000, 0.000, 0.692, 0.722]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除しました

# charging_station_pose: [-0.290, -0.029, 0.000, 0.000, 0.000, -0.040, 0.999]
# charging_station_pose: [-1.683, -0.028, 0.000, 0.000, 0.000, 0.692, 0.722]
charging_station_pose: [-1.987, -0.543, 0.000, 0.000, 0.000, 0.714, 0.700]
# charging_station_pose: [-1.995, -0.318, 0.000, 0.000, 0.000, 0.705, 0.709]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

undock_velocity: 0.1 #終わったあと離れる速さ

# maker_fair_practice
charging_station_pose: [0.291, 0.071, 0.000, 0.000, 0.000, -0.014, 1.000]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

charging_station_poseが2箇所ある

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除しました

~ArDockingServer();
// void currentCallback(const std_msgs::Float64::ConstPtr& msg);
// int isCharging();
// void publish_tf_pregoal(std::vector<double>& pregoal);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

</launch> No newline at end of file
<include file="$(find cube_petit_ar_docking)/launch/ar_action_client.launch"/>
<include file="$(find cube_petit_ar_docking)/launch/ar_tracking.launch"/>
<!-- <include file="$(find cube_speech)/launch/speech_server.launch"/> -->
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

Comment on lines 17 to 20
<!-- <node pkg="rostopic" type="rostopic" name="battery_remaining" args="pub -r 20 /gazebo_battery_monitor/battery_remaining std_msgs/Float64 9.0" output="screen" />
<node pkg="rostopic" type="rostopic" name="battery_voltage" args="pub -r 20 /gazebo_battery_monitor/battery_voltage std_msgs/Float64 13.0" output="screen"/>
<node pkg="rostopic" type="rostopic" name="charge_current" args="pub -r 20 /gazebo_battery_monitor/charge_current std_msgs/Float64 1.0" output="screen"/>
-->
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

</node>
<include file="$(find cube_speech)/launch/speech_server.launch"/>
</node>
<!-- <include file="$(find cube_speech)/launch/speech_server.launch"/> -->
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します


Speech_Util::Speech_Util(ros::NodeHandle nh)
//speech_service(nh, "speech_service")//, boost::bind(&AR_Docking_Server::actionServerCallback, this, _1, &server), false),
//speech_service(nh, "speech_service")//, boost::bind(&ArDockingServer::actionServerCallback, this, _1, &server), false),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

server_.start();
ROS_INFO("ar_docking_server_start");
// std::memset(current_data, 0.0, sizeof(current_data));
// std::memset(current_data_, 0.0, sizeof(current_data_));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

// Pregoal_Broadcaster pregoal_broadcaster(nh);
void ArDockingServer::initialize(ros::NodeHandle nh){
ROS_INFO("ArDockingServer::initialize");
// Pregoal_Broadcaster pregoal_broadcaster_(nh);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消す

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除します

@AiriYokochi AiriYokochi requested a review from nyxrobotics June 4, 2024 02:06
@AiriYokochi AiriYokochi marked this pull request as draft October 2, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants